MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / isUtf8Text

Function isUtf8Text

src/ast/ast_parse.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace 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');

Callers 2

getAllRequireReqFunction · 0.85
parseDaScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected