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

Function utf8_chr

src/common/utf8.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79char *utf8_chr(const char *s, const char *sfc) // Char is first from the string
80// sfc (string with first char)
81{
82 while (*s != 0) {
83 if ((s != nullptr) && utf8_first_chars_equal(s, sfc))
84 return const_cast<char *>(s);
85 s = utf8_inc(s);
86 }
87 return nullptr;
88}
89
90size_t utf8_length(const char *string) {
91 auto it = string;

Callers

nothing calls this directly

Calls 2

utf8_first_chars_equalFunction · 0.85
utf8_incFunction · 0.85

Tested by

no test coverage detected