NAME ^

encodings/utf8.c - UTF-8 encoding

DESCRIPTION ^

UTF-8 (http://www.utf-8.com/).

Functions ^

static UINTVAL utf8_characters(const void *ptr, UINTVAL bytes)

Returns the number of characters in the bytes bytes from *ptr.

static UINTVAL utf8_decode(const void *ptr)

Returns the integer for the UTF-8 character found at *ptr.

static void *utf8_encode(void *ptr, UINTVAL c)

Returns the UTF-8 encoding of integer c.

static const void *utf8_skip_forward(const void *ptr, UINTVAL n)

Moves ptr n characters forward.

static const void *utf8_skip_backward(const void *ptr, UINTVAL n)

Moves ptr n characters back.

Iterator Functions ^

String iteration is currently only used in hash_string_equal().

static UINTVAL utf8_decode_and_advance(struct string_iterator_t *i)

The UTF-8 implementation of the string iterator's decode_and_advance function.

func

The UTF-8 implementation of the string iterator's set_position function.

SEE ALSO ^

encodings/utf16.c, encodings/utf32.c, src/string.c, include/parrot/string.h, docs/string.pod.


parrot