NAME ^

src/encodings/ucs2.c - UCS-2 encoding

DESCRIPTION ^

UCS-2 encoding with the help of the ICU library.

Functions ^

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

TODO: Not yet documented!!!

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, SHIM(const STRING *src), UINTVAL offset)

TODO: Not yet documented!!!

static void set_byte(PARROT_INTERP, SHIM(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_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count)

TODO: Not yet documented!!!

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

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 ucs2_decode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i))

TODO: Not yet documented!!!

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

TODO: Not yet documented!!!

static void ucs2_set_position(SHIM_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!!!

PARROT_CANNOT_RETURN_NULL ENCODING *Parrot_encoding_ucs2_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