MCPcopy Create free account
hub / github.com/antvis/F2Native / getutf8Length

Function getutf8Length

core/android/JNIUtil.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static int getutf8Length(char header) {
112 int len = 0;
113 char mask = (char)0x80;
114 while(header & mask) {
115 header <<= 1;
116 len++;
117 }
118 return len == 0 ? 1 : len;
119}
120
121static int oneUtf8Convert2Utf16(const std::string &utf8Str, int start, char *output) {
122 char b1, b2, b3;

Callers 1

oneUtf8Convert2Utf16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected