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
PARROT_DOES_NOT_RETURN static STRING *to_encoding(PARROT_INTERP, SHIM(STRING *src), SHIM(STRING *dest))
PARROT_WARN_UNUSED_RESULT static UINTVAL get_codepoint(PARROT_INTERP, NOTNULL(const STRING *source_string), UINTVAL offset)
static void set_codepoint(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL codepoint)
PARROT_WARN_UNUSED_RESULT static UINTVAL get_byte(PARROT_INTERP, NOTNULL(const STRING *source_string), UINTVAL offset)
static void set_byte(PARROT_INTERP, NOTNULL(const STRING *source_string), UINTVAL offset, UINTVAL byte)
PARROT_WARN_UNUSED_RESULT static STRING *get_codepoints(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)
PARROT_WARN_UNUSED_RESULT static STRING *get_bytes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)
PARROT_WARN_UNUSED_RESULT static STRING *get_codepoints_inplace(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *dest_string))
PARROT_WARN_UNUSED_RESULT static STRING *get_bytes_inplace(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *return_string))
static void set_codepoints(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *new_codepoints))
static void set_bytes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *new_bytes))
static void become_encoding(PARROT_INTERP, SHIM(STRING *source_string))
static UINTVAL codepoints(PARROT_INTERP, NOTNULL(STRING *source_string))
static UINTVAL bytes(SHIM_INTERP, NOTNULL(STRING *source_string))
static UINTVAL fixed8_get_next(PARROT_INTERP, NOTNULL(String_iter *iter))
static void fixed8_set_next(PARROT_INTERP, NOTNULL(String_iter *iter), UINTVAL c)
static void fixed8_set_position(SHIM_INTERP, NOTNULL(String_iter *iter), UINTVAL pos)
static void iter_init(SHIM_INTERP, NOTNULL(const STRING *src), NOTNULL(String_iter *iter))
PARROT_CANNOT_RETURN_NULL ENCODING *Parrot_encoding_fixed_8_init(PARROT_INTERP)
|