![]() |
ArkScript
A small, lisp-inspired, functional scripting language
|
Namespaces | |
| namespace | details |
Enumerations | |
| enum class | Utf8Type { Ascii = 0 , LatinExtra = 1 , BasicMultiLingual = 2 , OthersPlanesUnicode = 3 , OutRange = 4 } |
Functions | |
| Utf8Type | utf8type (const char *input, int32_t *out=nullptr) |
| void | decode (const char *input, char *dest) |
| Convert hex string to utf8 string. | |
| bool | isValid (const char *str) |
| Check the validity of a given string in UTF8. | |
| int32_t | codepoint (const char *str) |
| Compute the UTF8 codepoint for a given UTF8 char. | |
| void | codepointToUtf8 (const int32_t codepoint, char *dest) |
| Generate an UTF8 character from a given codepoint. | |
|
strong |
|
inline |
Compute the UTF8 codepoint for a given UTF8 char.
| str |
Definition at line 191 of file utf8.hpp.
References codepoint(), and isValid().
Referenced by codepoint(), and codepointToUtf8().
|
inline |
Generate an UTF8 character from a given codepoint.
| codepoint | |
| dest | Output utf8 string (size [2,5]). Empty (\0) if input is invalid or out of range |
Definition at line 233 of file utf8.hpp.
References codepoint().
|
inline |
Convert hex string to utf8 string.
| input | |
| dest | Output utf8 string (size [2,5]). Empty (\0) if input is invalid or out of range |
Definition at line 67 of file utf8.hpp.
References Ascii, utf8::details::ASCIIHexToInt, BasicMultiLingual, LatinExtra, OthersPlanesUnicode, OutRange, and utf8type().
Referenced by Ark::internal::Parser::string().
|
inline |
Check the validity of a given string in UTF8.
| str |
Definition at line 138 of file utf8.hpp.
Referenced by codepoint().
|
inline |
Definition at line 36 of file utf8.hpp.
References Ascii, BasicMultiLingual, LatinExtra, OthersPlanesUnicode, and OutRange.
Referenced by decode().