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

Function UTF8Bytes

src/String.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int UTF8Bytes(int c)
101{
102 if( c <= 0x7F )
103 return 1;
104 else if( c <= 0x7FF )
105 return 2;
106 else if( c <= 0xFFFF )
107 return 3;
108 else
109 return 4;
110}
111
112inline static int UTF16BytesCheck(int ch)
113{

Callers 4

TConvertToUTF8Function · 0.85
fromCharCodeMethod · 0.85
utf8_strMethod · 0.85
__bootMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected