Text Encoding and Decoding

Base64

usage

(import :std/text/base64)

base64-encode

usage

(base64-encode ...)

Please document me!

base64-encode-subu8vector

usage

(base64-encode-subu8vector ...)

Please document me!

u8vector->base64-string

usage

(u8vector->base64-string ...)

Please document me!

subu8vector->base64-string

usage

(subu8vector->base64-string ...)

Please document me!

base64-decode

usage

(base64-decode ...)

Please document me!

base64-decode-substring

usage

(base64-decode-substring ...)

Please document me!

base64-substring->u8vector

usage

(base64-substring->u8vector ...)

Please document me!

base64-string->u8vector

usage

(base64-string->u8vector ...)

Please document me!

Base58

The :std/text/base58 library provides encoding and decoding to base58.

usage

(import :std/text/base58)

base58-encode

usage

(base58-encode bytes [alphabet = base58-btc-alphabet])
  bytes := u8vector
  alphabet := encoding alphabet
=> string

Base58 encodes a u8vector, using the given alphabet.

base58-decode

usage

(base58-decode str [alphabet = base58-btc-alphabet])
  str := string; base58 encoded
  alphabet := decoding alphabet
=> u8vetor

Base58 decodes a string, using the given alphabet

base58-btc-alphabet

(def base58-btc-alphabet)

The base58 encoding alphabet used by Bitcoin.

base58-flickr-alphabet

usage

(def base58-flickr-alphabet)

The base58 encoding alphabet used by Flickr.

CSV

CSV parser and unparser.

usage

(import :std/text/csv)

Overview

It is configurable through parameters to fit whichever CSV options your files use, defaulting to the "standard" from the creativyst specification. Parameters for RFC4180 are just a call-with- function call around.

The parameters are: csv-separator csv-quote csv-unquoted-quotequote? csv-loose-quote? csv-eol csv-line-endings csv-skip-whitespace? csv-allow-binary?

Functions to locally set the parameters to known values are call-with-creativyst-csv-syntax call-with-rfc4180-csv-syntax call-with-strict-rfc4180-csv-syntax

The parsing and unparsing functions are read-csv-line read-csv-lines read-csv-file write-csv-line write-csv-lines.

read-csv-line

usage

(read-csv-line ...)

Please document me!

read-csv-lines

usage

(read-csv-lines ...)

Please document me!

read-csv-file

usage

(read-csv-file ...)

Please document me!

write-csv-line

usage

(write-csv-line ...)

Please document me!

write-csv-lines

usage

(write-csv-lines ...)

Please document me!

call-with-creativyst-csv-syntax

usage

(call-with-creativyst-csv-syntax ...)

Please document me!

call-with-rfc4180-csv-syntax

usage

(call-with-rfc4180-csv-syntax ...)

Please document me!

call-with-strict-rfc4180-csv-syntax

usage

(call-with-strict-rfc4180-csv-syntax ...)

Please document me!

csv-separator

usage

(csv-separator ...)

Please document me!

csv-quote

usage

(csv-quote ...)

Please document me!

csv-unquoted-quotequote?

usage

(csv-unquoted-quotequote? ...)

Please document me!

csv-loose-quote?

usage

(csv-loose-quote? ...)

Please document me!

csv-eol

usage

(csv-eol ...)

Please document me!

csv-line-endings

usage

(csv-line-endings ...)

Please document me!

csv-skip-whitespace?

usage

(csv-skip-whitespace? ...)

Please document me!

csv-allow-binary?

usage

(csv-allow-binary? ...)

Please document me!

Hex

usage

(import :std/text/hex)

hex-encode

usage

(hex-encode ...)

Please document me!

hexlify

(defialias hexlify hex-encode)

Please document me!

hex-decode

usage

(hex-decode ...)

Please document me!

unhexlify

(defalias unhexlify hex-decode)

Please document me!

hex

usage

(hex ...)

Please document me!

unhex

usage

(unhex ...)

Please document me!

unhex*

usage

(unhex* ...)

Please document me!

JSON

usage

(import :std/text/json)

read-json

usage

(read-json ...)

Please document me!

write-json

usage

(write-json ...)

Please document me!

string->json-object

usage

(string->json-object ...)

Please document me!

json-object->string

usage

(json-object->string ...)

Please document me!

json-symbolic-keys

usage

(json-symbolic-keys ...)

Please document me!

UTF8

Faster UTF8 encoding and decoding.

usage

(import :std/text/utf8)

string->utf8

usage

(string->utf8 ...)

Please document me!

utf8->string

usage

(utf8->string ...)

Please document me!

utf8-encode

usage

(utf8-encode ...)

Please document me!

utf8-decode

usage

(utf8-decode ...)

Please document me!

string-utf8-length

usage

(string-utf8-length ...)

Please document me!

YAML

YAML parsing and dumping; requires libyaml.

usage

(import :std/text/yaml)

yaml-load

usage

(yaml-load filename)
  filename := string
=> any

Loads a YAML file.

yaml-load-string

usage

(yaml-load-string str)
  str := string
=> any

Parses a YAML string.

yaml-dump

usage

(yaml-dump filename . args)
  filename := string

Dumps the arguments to a YAML file.

Zlib

Compression and decompression with zlib.

usage

(import :std/text/zlib)

compress

usage

(compress ...)

Please document me!

compress-gz

usage

(compress-gz ...)

Please document me!

uncompress

usage

(uncompress ...)

Please document me!