Return whether string contains valid UTF‐8.
Synopsis
Declared in <bdlde_utf8util.h>
static
bool
isValid(std::string_view const& string);
Description
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.
Return Value
true if string is valid UTF‐8, and false otherwise
Parameters
Name |
Description |
string |
UTF‐8 string view to validate |
Created with MrDocs