Crate utf8_rune

Crate utf8_rune 

Source

Modules§

internal
pointer

Structs§

Rune
A Rune represents a single visible UTF-8 character. To handle contiguous bytes as multiple runes consider using Runes
RuneParts
Represents a memory area with contiguous bytes that serves as building block for Runes and Rune.
Runes
Represents a slice of bytes which can be automatically parsed into a sequence of Rune(s)

Enums§

ByteType
Represents UTF-8 byte type based on the most significant bits the given byte
Error

Functions§

continuation_bytes_location
returns the byte count until the end of that sequence the ByteType corresponding to the first byte pointed at by index when called with index that points to a sequence of bytes equivalent to either U+200D or U+FE0F.
get_rune_cutoff_at_index
heuristic function that determines the cutoff index at which a “rune” ends after the given index.
split_at_first_rune
equivalent to calling get_rune_cutoff_at_index with index 0

Type Aliases§

Result