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

Function utf8_pbrk

src/common/utf8.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71const char *utf8_pbrk(const char *s, const char *set) {
72 for (; *s != 0; s = utf8_inc(s))
73 for (auto x = set; *x != 0; x = utf8_inc(x))
74 if (utf8_first_chars_equal(s, x))
75 return s;
76 return nullptr;
77}
78
79char *utf8_chr(const char *s, const char *sfc) // Char is first from the string
80// sfc (string with first char)

Callers

nothing calls this directly

Calls 2

utf8_incFunction · 0.85
utf8_first_chars_equalFunction · 0.85

Tested by

no test coverage detected