MCPcopy Create free account
hub / github.com/TASEmulators/fceux / isLegalUTF8Sequence

Function isLegalUTF8Sequence

src/utils/ConvertUTF.c:326–332  ·  view source on GitHub ↗

* Exported function to return whether a UTF-8 sequence is legal or not. * This is not used here; it's just exported. */

Source from the content-addressed store, hash-verified

324 * This is not used here; it's just exported.
325 */
326Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {
327 int length = trailingBytesForUTF8[*source]+1;
328 if (source+length > sourceEnd) {
329 return false;
330 }
331 return isLegalUTF8(source, length);
332}
333
334/* --------------------------------------------------------------------- */
335

Callers

nothing calls this directly

Calls 1

isLegalUTF8Function · 0.85

Tested by

no test coverage detected