io.encodings vocabulary
Factor handbook > Vocabulary index


Documentation
I/O encodings

Meta-data
Tags:text
Authors:Daniel Ehrenberg, Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
decode-error tuple
decoder tuplestream code cr
encode-error tuple
encoder tuplestream code


Generic words
WordStack effect
<decoder>( stream encoding -- newstream )
<encoder>( stream encoding -- newstream )
decode-char( stream encoding -- char/f )
decode-until( seps stream encoding -- string/f sep/f )
encode-char( char stream encoding -- )
encode-string( string stream encoding -- )
guess-decoded-length( byte-length encoding -- string-length )
guess-encoded-length( string-length encoding -- byte-length )
re-decode( stream encoding -- newstream )
re-encode( stream encoding -- newstream )


Ordinary words
WordStack effect
(decode-until)( seps stream encoding -- string/f sep/f )
decode-error( -- * )
decode-input( encoding -- )
encode-error( -- * )
encode-output( encoding -- )
replacement-char( -- value )
with-decoded-input( encoding quot -- )
with-encoded-output( encoding quot -- )


Class predicate words
WordStack effect
decode-error?( object -- ? )
decoder?( object -- ? )
encode-error?( object -- ? )
encoder?( object -- ? )


Files


Children from resource:core
VocabularySummary
io.encodings.asciiASCII encoding for streams
io.encodings.binaryDummy encoding for binary I/O
io.encodings.utf16UTF16 encoding/decoding
io.encodings.utf16nUTF16 encoding with native byte order
io.encodings.utf8UTF8 encoding/decoding


Children from resource:basis
VocabularySummary
io.encodings.8-bitDefinitions of 8-bit encodings like ISO 8859 and Windows 1252
io.encodings.big5io.encodings.big5 vocabulary
io.encodings.eucio.encodings.euc vocabulary
io.encodings.euc-jpEUC-JP text encoding
io.encodings.euc-krKorean text encodings
io.encodings.gb18030GB18030 encoding for Chinese text
io.encodings.ianaTables for IANA encoding names
io.encodings.iso2022ISO-2022-JP-1 text encoding
io.encodings.japaneseio.encodings.japanese vocabulary
io.encodings.johabJohab Korean text encoding
io.encodings.shift-jisJapanese text encodings
io.encodings.strictStrict wrapper for encodings
io.encodings.stringConverting strings to byte arrays and vice versa
io.encodings.utf32UTF32 encoding/decoding
io.encodings.utf7UTF7 encoding/decoding


Children from resource:extra
VocabularySummary
io.encodings.detectHeuristic auto-detection of text encodings and binary files


Children
VocabularySummary
io.encodings.privateio.encodings.private vocabulary