NAME ^

src/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 byte_len 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 ^

static UINTVAL utf8_decode_and_advance(Interp *, String_iter *i)

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

static void utf8_encode_and_advance(Interp *, String_iter *i, UINTVAL c)

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

func

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

SEE ALSO ^

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


parrot