Expand description
Provides iteration by char over &[u16] containing potentially-invalid
UTF-16 such that errors are replaced with the REPLACEMENT CHARACTER.
The trait Utf16CharsEx provides the convenience method chars() on
byte slices themselves instead of having to use the more verbose
Utf16Chars::new(slice).
Modulesยง
- cptrie ๐
- cptrie_
indices ๐ - indices ๐
- report ๐
Structsยง
- Error
Reporting Utf16 Chars - Iterator by
Result<char,Utf16CharsError>over&[u16]that contains potentially-invalid UTF-16. There is exactly oneUtf16CharsErrorper each unpaired surrogate. - Utf16
Char Indices - An iterator over the
chars and their positions. - Utf16
Char Indices With Trie - An iterator over the
chars and their positions. - Utf16
Chars - Iterator by
charover&[u16]that contains potentially-invalid UTF-16. See the crate documentation. - Utf16
Chars Error - A type for signaling UTF-16 errors.
- Utf16
Chars With Trie - Iterator by
charandicu_collections::codepointtrie::TrieValueover&[u16]that contains potentially-invalid UTF-16. See the crate documentation.
Traitsยง
- Utf16
Chars Ex - Convenience trait that adds
chars()andchar_indices()methods similar to the ones on string slices tou16slices. - Utf16
Chars With Trie Ex - Convenience trait that adds
chars_with_trie()andchar_indices_with_trie()methods similar to the onesicu_collections::codepointtrie::CharsWithTrieExadds to string slices tou16slices.
Functionsยง
- in_
inclusive_ ๐range16