MCPcopy Create free account
hub / github.com/defold/defold / StrLen

Function StrLen

engine/dlib/src/dlib/utf8.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 uint32_t StrLen(const char* str) {
78 int i = 0, j = 0;
79 while (str[i]) {
80 if ((str[i] & 0xc0) != 0x80) j++;
81 i++;
82 }
83 return j;
84 }
85
86}

Callers 3

TESTFunction · 0.85
TextToCodePointsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68