[#BloombergLP-bdlde-Utf8Util-isValid-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::isValid :relfileprefix: ../../../ :mrdocs: `isValid` overloads == Synopses Declared in `<bdlde_utf8util.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-00.adoc[isValid](std::string_view const& string); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-00.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-05.adoc[isValid](char const* string); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-05.adoc[_» more..._]# Return `true` if the specified `string` having the specified `length` (in bytes) contains valid UTF‐8, and `false` otherwise. `string` need not be null‐terminated and can contain embedded null bytes, and `string` may be null if `0 == length` (see {Empty Input Strings}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-0d.adoc[isValid]( char const* string, xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] length); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-0d.adoc[_» more..._]# Return `true` if the specified `string` contains only valid UTF‐8 characters, and `false` otherwise. If `string` contains invalid UTF‐8, load into the specified `invalidString` the address of the byte after the last valid code point traversed; `invalidString` is unaffected if `string` contains only valid UTF‐8. `string` need not be null‐terminated and can contain embedded null bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-04.adoc[isValid]( char const** invalidString, std::string_view const& string); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-04.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-0c.adoc[isValid]( char const** invalidString, char const* string); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-0c.adoc[_» more..._]# Return `true` if the specified `string` having the specified `length` (in bytes) contains valid UTF‐8, and `false` otherwise. If `string` contains invalid UTF‐8, load into the specified `invalidString` the address of the byte after the last valid code point traversed; `invalidString` is unaffected if `string` contains only valid UTF‐8. `string` need not be null‐terminated and can contain embedded null bytes, and `string` may be null if `0 == length` (see {Empty Input Strings}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlde/Utf8Util/isValid-09.adoc[isValid]( char const** invalidString, char const* string, xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] length); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/isValid-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#