MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / utf8_length

Function utf8_length

src/common/utf8.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90size_t utf8_length(const char *string) {
91 auto it = string;
92 size_t size = 0;
93 while (*it != 0) {
94 size++;
95 it = utf8_inc(it);
96 }
97 return size;
98}

Callers 2

utf8_to_wstringFunction · 0.85
utf8_to_stringFunction · 0.85

Calls 1

utf8_incFunction · 0.85

Tested by

no test coverage detected