|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
Functions | |
| substr | c4::skip_bom (substr s) |
| skip the Byte Order Mark, or get the full string if there is Byte Order Mark. | |
| csubstr | c4::skip_bom (csubstr s) |
| skip the Byte Order Mark, or get the full string if there is Byte Order Mark | |
| substr | c4::get_bom (substr s) |
| get the Byte Order Mark, or an empty string if there is no Byte Order Mark | |
| csubstr | c4::get_bom (csubstr s) |
| get the Byte Order Mark, or an empty string if there is no Byte Order Mark | |
| size_t | c4::first_non_bom (csubstr s) |
| return the position of the first character not belonging to the Byte Order Mark, or 0 if there is no Byte Order Mark. | |
| substr | c4::decode_code_point (substr out, csubstr code_point) |
decode the given code_point, writing into the output string in out. | |
| size_t | c4::decode_code_point (uint8_t *buf, size_t buflen, uint32_t code) |
decode the given code point, writing into the output string buf, of size buflen | |
skip the Byte Order Mark, or get the full string if there is Byte Order Mark.
Definition at line 103 of file utf.cpp.
skip the Byte Order Mark, or get the full string if there is Byte Order Mark
get the Byte Order Mark, or an empty string if there is no Byte Order Mark
Definition at line 95 of file utf.cpp.
get the Byte Order Mark, or an empty string if there is no Byte Order Mark
| size_t c4::first_non_bom | ( | csubstr | s | ) |
return the position of the first character not belonging to the Byte Order Mark, or 0 if there is no Byte Order Mark.
Definition at line 59 of file utf.cpp.
Referenced by get_bom(), get_bom(), skip_bom(), and skip_bom().
decode the given code_point, writing into the output string in out.
| out | the output string. must have at least 4 bytes (this is asserted), and must not have a null string. |
| code_point | must have length in ]0,8], and must not begin with any of `U+`,`\x`,`\u`,`\U`,`0`(asserted) |
out that was written, which will always be at most 4 bytes. Definition at line 42 of file utf.cpp.
Referenced by decode_code_point(), and decode_code_point().
| size_t c4::decode_code_point | ( | uint8_t * | buf, |
| size_t | buflen, | ||
| uint32_t | code ) |
decode the given code point, writing into the output string buf, of size buflen
| buf | the output string. must have at least 4 bytes (this is asserted), and must not be null |
| buflen | the length of the output string. must be at least 4 |
| code | the code point must have length in ]0,8], and must not begin with any of `U+`,`\x`,`\u`,`\U`,`0`(asserted) |
Definition at line 8 of file utf.cpp.