NAME ^

src/encodings/fixed_8.c

DESCRIPTION ^

This file implements the encoding functions for fixed-width 8-bit codepoints

PARROT_DOES_NOT_RETURN PARROT_CANNOT_RETURN_NULL static STRING *to_encoding(PARROT_INTERP, SHIM(STRING *src), SHIM(STRING *dest))

RT#48260: Not yet documented!!!

PARROT_WARN_UNUSED_RESULT static UINTVAL get_codepoint(PARROT_INTERP, ARGIN(const STRING *source_string), UINTVAL offset)

codepoints are bytes, so delegate

static void set_codepoint(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL codepoint)

This is the same as set byte

PARROT_WARN_UNUSED_RESULT static UINTVAL get_byte(PARROT_INTERP, ARGIN(const STRING *source_string), UINTVAL offset)

RT#48260: Not yet documented!!!

static void set_byte(PARROT_INTERP, ARGIN(const STRING *source_string), UINTVAL offset, UINTVAL byte)

RT#48260: Not yet documented!!!

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_codepoints(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)

Delegate to get_bytes

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_bytes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)

RT#48260: Not yet documented!!!

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_codepoints_inplace(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *dest_string))

Delegate to get_bytes

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static STRING *get_bytes_inplace(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *return_string))

RT#48260: Not yet documented!!!

static void set_codepoints(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *new_codepoints))

Delegate to set_bytes

static void set_bytes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *new_bytes))

RT#48260: Not yet documented!!!

static void become_encoding(PARROT_INTERP, SHIM(STRING *source_string))

Unconditionally makes the string be in this encoding, if that's valid

static UINTVAL codepoints(PARROT_INTERP, NOTNULL(STRING *source_string))

RT#48260: Not yet documented!!!

static UINTVAL bytes(SHIM_INTERP, NOTNULL(STRING *source_string))

RT#48260: Not yet documented!!!

static UINTVAL fixed8_get_next(PARROT_INTERP, NOTNULL(String_iter *iter))

RT#48260: Not yet documented!!!

static void fixed8_set_next(PARROT_INTERP, NOTNULL(String_iter *iter), UINTVAL c)

RT#48260: Not yet documented!!!

static void fixed8_set_position(SHIM_INTERP, NOTNULL(String_iter *iter), UINTVAL pos)

RT#48260: Not yet documented!!!

static void iter_init(SHIM_INTERP, ARGIN(const STRING *src), NOTNULL(String_iter *iter))

RT#48260: Not yet documented!!!

PARROT_CANNOT_RETURN_NULL ENCODING *Parrot_encoding_fixed_8_init(PARROT_INTERP)

RT#48260: Not yet documented!!!


parrot