parrotcode: UTF-16 encoding | |
Contents | C |
src/encodings/utf16.c - UTF-16 encoding
UTF-16 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), NULLOK(STRING *dest))
src
to this encoding.
If dest
is set fill it with the converted result,
else operate inplace.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, ARGIN(const STRING *src), UINTVAL offset)
static void set_byte(PARROT_INTERP, ARGIN(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_codepoints_inplace(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL count, NOTNULL(STRING *return_string))
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_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))
PARROT_WARN_UNUSED_RESULT static UINTVAL utf16_decode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i))
static void utf16_encode_and_advance(PARROT_INTERP, NOTNULL(String_iter *i), UINTVAL c)
static void utf16_set_position(PARROT_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_utf16_init(PARROT_INTERP)
src/encodings/fixed_8.c, src/encodings/utf8.c, src/string.c, include/parrot/string.h, docs/string.pod.
|