Return to Roc packages
Documentation
CodePoint
▶
CodePoint
to_u32
from_u32
is_valid_scalar
is_high_surrogate
is_low_surrogate
utf8_len
append_utf8
count_utf8_bytes
Utf8ParseErr
parse_utf8
parse_partial_utf8
to_str
east_asian_width_property
visual_width
Grapheme
▶
Grapheme
split
(press
s
)
CodePoint
.
CodePoint
CodePoint
.
to_u32
: CodePoint -> U32
CodePoint
.
from_u32
: U32 -> Result CodePoint [InvalidCodePoint]
CodePoint
.
is_valid_scalar
: CodePoint -> Bool
CodePoint
.
is_high_surrogate
: CodePoint -> Bool
CodePoint
.
is_low_surrogate
: CodePoint -> Bool
CodePoint
.
utf8_len
: CodePoint -> Result U8 [InvalidCodePoint]
CodePoint
.
append_utf8
: List U8, CodePoint -> List U8
CodePoint
.
count_utf8_bytes
: CodePoint -> U8
CodePoint
.
Utf8ParseErr
: [ OverlongEncoding, ExpectedContinuation, EncodesSurrogateHalf, InvalidUtf8, ListWasEmpty, CodepointTooLarge ]
CodePoint
.
parse_utf8
: List U8 -> Result (List CodePoint) Utf8ParseErr
CodePoint
.
parse_partial_utf8
: List U8 -> Result { code_point : CodePoint, bytes_parsed : U64 } Utf8ParseErr
CodePoint
.
to_str
: List CodePoint -> Result Str [BadUtf8]
CodePoint
.
east_asian_width_property
: CodePoint -> EastAsianProperty
CodePoint
.
visual_width
: CodePoint -> U32
Grapheme
.
Grapheme
Grapheme
.
split
: Str -> Result (List Str) Utf8ParseErr
Exposed Modules
LLM docs
CodePoint
Grapheme