Compiler implementation of the D programming language.
The Unicode code space is the range of code points [0x000000,0x10FFFF] except the UTF-16 surrogate pairs in the range [0xD800,0xDFFF]
Return !=0 if unicode alpha. Use table from C99 Appendix D.
Returns the code length of c in code units.
Returns the code length of c in code units for the encoding. sz is the encoding: 1 = utf8, 2 = utf16, 4 = utf32.
Decode a UTF-8 sequence as a single UTF-32 code point.
const(char)* s
| UTF-8 sequence |
size_t len
| number of code units in s[] |
size_t ridx
| starting index in s[], updated to reflect number of code units decoded |
dchar rresult
| set to character decoded |
Decode a UTF-16 sequence as a single UTF-32 code point.
const(wchar)* s
| UTF-16 sequence |
size_t len
| number of code units in s[] |
size_t ridx
| starting index in s[], updated to reflect number of code units decoded |
dchar rresult
| set to character decoded |
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_utf.html