Return whether string contains valid UTF-8.
Declared in <bdlde_utf8util.h>
static
bool
isValid(char const* string);
Return true if the specified string contains valid UTF-8, and false otherwise. string is necessarily null-terminated, so it cannot contain embedded null bytes.
true if string is valid UTF-8, and false otherwise
| Name | Description |
|---|---|
| string | null-terminated UTF-8 input to validate |