| 28 | namespace das { |
| 29 | |
| 30 | bool isUtf8Text ( const char * src, uint32_t length ) { |
| 31 | if ( length>=3 ) { |
| 32 | auto usrc = (const uint8_t *)src; |
| 33 | if ( usrc[0]==0xef && usrc[1]==0xbb && usrc[2]==0xbf) { |
| 34 | return true; |
| 35 | } |
| 36 | } |
| 37 | return false; |
| 38 | } |
| 39 | |
| 40 | __forceinline bool isalphaE ( int ch ) { |
| 41 | return (ch>='a' && ch<='z') || (ch>='A' && ch<='Z'); |
no outgoing calls
no test coverage detected