Expand description
Iterators to transliterate Unicode to ASCII. Note that only alphanumeric characters are transliterated, and not all of them are supported.
Characters can be transliterated to multiple ASCII characters. For example,
æ
is converted to ae
, and ½
is converted to 1/2
.
The iterators don’t allocate memory on the heap. I haven’t benchmarked it, but I believe that it’s quite efficient.
Structs§
- Lexical
Char - An iterator over one
char
, converted to lowercase and transliterated to ASCII, if it is an alphanumeric character
Functions§
- iterate_
lexical - Returns an iterator over the characters of a string, converted to lowercase and transliterated to ASCII, if they’re alphanumeric
- iterate_
lexical_ char - Returns an iterator over one
char
, converted to lowercase and transliterated to ASCII, if it is alphanumeric - iterate_
lexical_ char_ only_ alnum - Returns an iterator over one
char
, converted to lowercase and transliterated to ASCII, if it is alphanumeric - iterate_
lexical_ only_ alnum - Returns an iterator over the characters of a string, converted to lowercase and transliterated to ASCII. Non-alphanumeric characters are skipped