NAME ^

src/encodings/utf16.c - UTF-16 encoding

DESCRIPTION ^

UTF-16 encoding with the help of the ICU library.

Functions ^

PARROT_WARN_UNUSED_RESULT static STRING *to_encoding(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))

Convert string src to this encoding. If dest is set fill it with the converted result, else operate inplace.

static UINTVAL get_codepoint(PARROT_INTERP, NOTNULL(const STRING *src), UINTVAL offset)

TODO: Not yet documented!!!

static void set_codepoint(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL codepoint)

TODO: Not yet documented!!!

static UINTVAL get_byte(PARROT_INTERP, NOTNULL(const STRING *src), UINTVAL offset)

TODO: Not yet documented!!!

static void set_byte(PARROT_INTERP, NOTNULL(const STRING *src), UINTVAL offset, UINTVAL byte)

TODO: Not yet documented!!!

static STRING *get_codepoints(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL count)

TODO: Not yet documented!!!

static STRING *get_codepoints_inplace(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL count, NOTNULL(STRING *return_string))

TODO: Not yet documented!!!

static STRING *get_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count)

TODO: Not yet documented!!!

static STRING *get_bytes_inplace(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *return_string))

TODO: Not yet documented!!!

static void set_codepoints(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *new_codepoints))

TODO: Not yet documented!!!

static void set_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *new_bytes))

TODO: Not yet documented!!!

static void become_encoding(PARROT_INTERP, SHIM(STRING *src))

Unconditionally makes the string be in this encoding, if that's valid

static UINTVAL codepoints(PARROT_INTERP, NOTNULL(STRING *src))

TODO: Not yet documented!!!

static UINTVAL bytes(PARROT_INTERP, NOTNULL(STRING *src))

TODO: Not yet documented!!!

static UINTVAL utf16_decode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i))

TODO: Not yet documented!!!

static void utf16_encode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i), UINTVAL c)

TODO: Not yet documented!!!

static void utf16_set_position(PARROT_INTERP, NOTNULL(String_iter *i), UINTVAL n)

TODO: Not yet documented!!!

static void iter_init(PARROT_INTERP, NOTNULL(const STRING *src), NOTNULL(String_iter *iter))

TODO: Not yet documented!!!

ENCODING *Parrot_encoding_utf16_init(PARROT_INTERP)

TODO: Not yet documented!!!

SEE ALSO ^

src/encodings/fixed_8.c, src/encodings/utf8.c, src/string.c, include/parrot/string.h, docs/string.pod.


parrot