parrotcode: UCS-2 encoding | |
Contents | C |
src/encodings/ucs2.c - UCS-2 encoding
UCS-2 encoding with the help of the ICU library.
static STRING *to_encoding
src
to this particular encoding.
If dest
is provided,
it will contain the result.
Otherwise this function operates in place.static UINTVAL get_codepoint
src
at position offset
.static void set_codepoint
src
at position offset
,
the codepoint codepoint
.static UINTVAL get_byte
src
at position offset
.static void set_byte
src
at position offset
,
the byte byte
.static STRING *get_codepoints
src
at position offset
and length count
.static STRING *get_bytes
src
at position offset
and length count
.static STRING *get_codepoints_inplace
src
at position offset
count
codepoints and returns them in return_string
.static STRING *get_bytes_inplace
src
at position offset
count
bytes and returns them in return_string
.static void set_codepoints
src
at position offset
for count
codepoints with the contents of string new_codepoints
.static void set_bytes
src
at position offset
for count
bytes with the contents of string new_bytes
.static void become_encoding
static UINTVAL codepoints
src
.static UINTVAL bytes
src
.static UINTVAL ucs2_decode_and_advance
i
to the next UCS-2 codepoint.static void ucs2_encode_and_advance
i
,
appends the codepoint c
and advances to the next position in the string.static void ucs2_set_position
i
to the position n
in the string.static void iter_init
src
the string iterator iter
.ENCODING *Parrot_encoding_ucs2_init
src/encodings/fixed_8.c, src/encodings/utf8.c, src/string.c, include/parrot/string.h, docs/string.pod.
|