Return true if the specified string contains valid UTF‐8, and false otherwise. If string contains invalid UTF‐8, load into the specified invalidString the address of the beginning of the first invalid UTF‐8 sequence encountered; invalidString is unaffected if string contains only valid UTF‐8. string is necessarily null‐terminated, so it cannot contain embedded null bytes.

Synopsis

Declared in <bdlde_utf8util.h>

static
bool
isValid(
    char const** invalidString,
    char const* string);

Created with MrDocs