parrotcode: UCS-2 encoding | |
Contents | C |
src/encodings/ucs2.c - UCS-2 encoding
UCS-2 encoding with the help of the ICU library.
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *to_encoding(PARROT_INTERP, NOTNULL(STRING *src), NOTNULL(STRING *dest))
static UINTVAL get_codepoint(PARROT_INTERP, ARGIN(const STRING *src), UINTVAL offset)
static void set_codepoint(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL codepoint)
static UINTVAL get_byte(PARROT_INTERP, SHIM(const STRING *src), UINTVAL offset)
static void set_byte(PARROT_INTERP, SHIM(const STRING *src), UINTVAL offset, UINTVAL byte)
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_codepoints(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL count)
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count)
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_codepoints_inplace(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *dest_string))
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_bytes_inplace(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *return_string))
static void set_codepoints(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *new_codepoints))
static void set_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count, SHIM(STRING *new_bytes))
static void become_encoding(PARROT_INTERP, SHIM(STRING *src))
PARROT_WARN_UNUSED_RESULT static UINTVAL codepoints(PARROT_INTERP, NOTNULL(STRING *src))
PARROT_WARN_UNUSED_RESULT static UINTVAL bytes(PARROT_INTERP, NOTNULL(STRING *src))
static UINTVAL ucs2_decode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i))
static void ucs2_encode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i), UINTVAL c)
static void ucs2_set_position(SHIM_INTERP, NOTNULL(String_iter *i), UINTVAL n)
static void iter_init(PARROT_INTERP, ARGIN(const STRING *src), NOTNULL(String_iter *iter))
PARROT_CANNOT_RETURN_NULL ENCODING *Parrot_encoding_ucs2_init(PARROT_INTERP)
src/encodings/fixed_8.c, src/encodings/utf8.c, src/string.c, include/parrot/string.h, docs/string.pod.
|