Utility for validating and navigating UTF‐8 encoded strings.
Synopsis
Declared in <bdlde_utf8util.h>
struct Utf8Util;
Description
This struct provides a namespace for static methods used for validating UTF‐8 strings, for counting the number of Unicode code points in them, for advancing pointers through UTF‐8 strings by a specified number of Unicode code points, for counting the number of bytes a UTF‐8 leading substring occupies, for counting the number of bytes in a UTF‐8 character, and for appending a Unicode character to a UTF‐8 string.
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
Enums
Name |
Description |
Substitution code point constants. |
|
Negative status codes returned when UTF‐8 validation fails. |
Static Member Functions
Name |
Description |
|
|
|
|
Append the UTF‐8 encoding of |
|
Append the UTF‐8 encoding of |
|
Return the numeric value of the UTF‐8 code point at |
|
Return the byte length of the UTF‐8 code point at |
|
Load line and column information for |
|
|
|
Return whether |
|
Return the byte length of the first |
|
Return the byte length of the UTF‐8 code point at |
|
Return the byte length of the first |
|
|
|
Return the Unicode code‐point count if |
|
|
|
|
|
Return the Unicode code‐point count in |
|
Copy valid UTF‐8 from |
|
Replace UTF‐8 error sequences in |
|
Return the string name of the |
Created with MrDocs