[#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 whether `string` contains valid UTF‐8. [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 whether `string` contains valid UTF‐8. [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 whether a bounded `string` contains valid UTF‐8. [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 whether `string` contains only valid UTF‐8 characters. [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 whether `string` contains valid UTF‐8. [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 whether a bounded `string` contains valid UTF‐8. [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..._]# == Return Value `true` if `string` is valid UTF‐8, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *string* | UTF‐8 string view to validate | *length* | length of `string` in bytes | *invalidString* | if non‐null, set to after the last valid code point |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#