| 714 | } |
| 715 | |
| 716 | bool _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 | |
| 731 | String _hx_utf8_sub(String inString, int inStart, int inLen) |
| 732 | { |
nothing calls this directly
no test coverage detected