MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / _hx_utf8_is_valid

Function _hx_utf8_is_valid

src/String.cpp:716–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716bool _hx_utf8_is_valid(String inString)
717{
718 #ifdef HX_SMART_STRINGS
719 return true;
720 #else
721 const unsigned char *src = (const unsigned char *)inString.__s;
722 const unsigned char *end = src + inString.length;
723 const unsigned char *sLen = getUtf8LenArray();
724 while(src<end)
725 src += sLen[*src];
726
727 return src==end;
728 #endif
729}
730
731String _hx_utf8_sub(String inString, int inStart, int inLen)
732{

Callers

nothing calls this directly

Calls 1

getUtf8LenArrayFunction · 0.85

Tested by

no test coverage detected