parrotcode: UTF-8 encoding | |
Contents | C |
encodings/utf8.c - UTF-8 encoding
UTF-8 (http://www.utf-8.com/).
static UINTVAL utf8_characters(const void *ptr, UINTVAL bytes)
bytes
bytes from *ptr
.static UINTVAL utf8_decode(const void *ptr)
*ptr
.static void *utf8_encode(void *ptr, UINTVAL c)
c
.static const void *utf8_skip_forward(const void *ptr, UINTVAL n)
ptr
n
characters forward.static const void *utf8_skip_backward(const void *ptr, UINTVAL n)
ptr
n
characters back.String iteration is currently only used in hash_string_equal()
.
static UINTVAL utf8_decode_and_advance(struct string_iterator_t *i)
decode_and_advance
function.func
set_position
function.encodings/utf16.c, encodings/utf32.c, src/string.c, include/parrot/string.h, docs/string.pod.
|