Handbook
Glossary
utf16be
UTF-16 encoding
Prev:
utf16le
Next:
utf16n
Vocabulary
io
.
encodings
.
utf16
Class description
The encoding descriptor for UTF-16BE, that is, UTF-16 in big endian, without a byte order mark. Streams can be made which read or write wth this encoding.
See also
An introduction to encodings
See also
utf16
,
utf16le
,
utf16n
Definition
IN:
io.encodings.utf16
SINGLETON:
utf16be
Methods
USING:
io
io.encodings
io.encodings.utf16
io.encodings.utf16.private
kernel
;
M:
utf16be
decode-char
drop
dup
stream-read1
dup
[
begin-utf16be
]
when
nip
;
USING:
io.encodings
io.encodings.utf16
io.encodings.utf16.private
kernel
;
M:
utf16be
encode-char
drop
char>utf16be
;
USING:
io.encodings
io.encodings.utf16
io.encodings.utf16.private
kernel
;
M:
utf16be
encode-string
drop
encode-string-utf16be
;
USING:
io.encodings
io.encodings.utf16
kernel
math
;
M:
utf16be
guess-decoded-length
drop
2
/i
;
inline
USING:
io.encodings
io.encodings.utf16
kernel
math
;
M:
utf16be
guess-encoded-length
drop
2
*
;
inline