MCPcopy Create free account
hub / github.com/ablab/spades / isLegalUTF8Sequence

Function isLegalUTF8Sequence

ext/src/llvm/ConvertUTF.cpp:412–418  ·  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

410 * This is not used here; it's just exported.
411 */
412Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {
413 int length = trailingBytesForUTF8[*source]+1;
414 if (length > sourceEnd - source) {
415 return false;
416 }
417 return isLegalUTF8(source, length);
418}
419
420/* --------------------------------------------------------------------- */
421

Calls 1

isLegalUTF8Function · 0.85

Tested by

no test coverage detected