Return whether string contains valid UTF-8.
Declared in <bdlde_utf8util.h>
static
bool
isValid(std::string_view const& string);
Return true if the specified string contains valid UTF-8, and false otherwise. string need not be null-terminated and can contain embedded null bytes.
true if string is valid UTF-8, and false otherwise
| Name | Description |
|---|---|
| string | UTF-8 string view to validate |