Return whether a bounded string contains valid UTF-8.
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}).
true if string is valid UTF-8, and false otherwise
| Name | Description |
|---|---|
| string | UTF-8 byte sequence (need not be null-terminated) |
| length | length of string in bytes |