Fast-convert:   fast and easy conversion from bytes to string
gen-table
gen-tables
convert
convert-table?
convert-table-name
7.1

Fast-convert: fast and easy conversion from bytes to string

Roman Klochkov <[email protected]>

 (require fast-convert) package: fast-convert

syntax

(gen-table charset)

 
  charset : string?
Produces convert table for given charset. Charset name is the same, that may be used for bytes-open-converter.

syntax

(gen-tables id ...)

Binds convert tables for charsets, whose names are the names of ids, to ids

As an example,

(gen-tables cp437 cp866)

defines convert tables for codepages cp437 and cp866 and binds them to ids cp437 and cp866.

procedure

(convert table bstr)  string?

  table : convert-table?
  bstr : bytes?
Converts bstr with charset defined by table to string.

procedure

(convert-table? object)  boolean?

  object : any/c
Tests whether the object is convert table.

procedure

(convert-table-name table)  string?

  table : convert-table?
Returns charset name for table.