parrotcode: src/encodings/fixed_8.c | |
Contents | C |
src/encodings/fixed_8.c
This file implements the encoding functions for fixed-width 8-bit codepoints
static STRING *to_encoding
src
to this particular encoding.
If dest
is provided,
it will contain the result.
Otherwise this function operates in place.static UINTVAL get_codepoint
static void set_codepoint
static UINTVAL get_byte
src
at position offset
.static void set_byte
src
at position offset
,
the byte byte
.static STRING *get_codepoints
src
at position offset
and length count
.
(Delegates to get_bytes
.)static STRING *get_bytes
src
at position offset
and length count
.static STRING *get_codepoints_inplace
src
at position offset
count
codepoints and returns them in return_string
.
(Delegates to get_bytes
.)static STRING *get_bytes_inplace
src
at position offset
count
bytes and returns them in return_string
.static void set_codepoints
static void set_bytes
src
at position offset
for count
bytes with the contents of string new_bytes
.static void become_encoding
static UINTVAL codepoints
src
.static UINTVAL bytes
src
.static UINTVAL fixed8_get_next
i
to the next codepoint.static void fixed8_set_next
i
,
appends the codepoint c
and advances to the next position in the string.static void fixed8_set_position
i
to the position n
in the string.static void iter_init
src
the string iterator iter
.ENCODING *Parrot_encoding_fixed_8_init
|