Utf8
loreline.Utf8 (Class)
UTF-8 aware string operations that can be used as extension methods.
Use with: using loreline.Utf8;
Static Members
UTF-8 aware string length
UTF-8 aware substring extraction
UTF-8 aware substring with end position
| Name |
Type |
Default |
str |
String |
|
startIndex |
Int |
|
endIndex |
Int |
(optional) |
UTF-8 aware character code at position
UTF-8 aware indexOf
UTF-8 aware lastIndexOf
UTF-8 aware string to char array
UTF-8 aware charAt
Decode a string into a fixed-size Vector of code points in a single
forward pass (O(n) on every target). This is the linear decode that
lets scanners index characters in O(1); a naive uCharCodeAt/uToChars
loop would itself be O(n^2) on neko/php.