Text_Buffer module

decode_at

procedure · 1 overloadsince 0.31.0Source

Decode the code point at index: its value and its length in bytes. Malformed bytes decode as U+FFFD, one byte at a time, so scanning always advances.

decode_at :: (text: string, index: int) -> (code: u32, size: int)

Decode the code point at index: its value and its length in bytes. Malformed bytes decode as U+FFFD, one byte at a time, so scanning always advances.

Parameters

text: string
index: int

Returns

code: u32
size: int

See also