MCPcopy Create free account
hub / github.com/aseprite/laf / utf8_length

Function utf8_length

base/string.cpp:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214#endif
215
216int utf8_length(const std::string& utf8string)
217{
218 utf8_decode decode(utf8string);
219 int c = 0;
220
221 while (decode.next())
222 ++c;
223
224 return c;
225}
226
227int utf8_icmp(const std::string& a, const std::string& b, int n)
228{

Callers 2

TESTFunction · 0.85
from_utf8Function · 0.85

Calls 1

nextMethod · 0.45

Tested by 1

TESTFunction · 0.68