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

Function utf8_first_chars_equal

src/common/utf8.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool utf8_first_chars_equal(const char *str1, const char *str2) {
64 int char1_size = utf8_symbol_len(*str1);
65 int char2_size = utf8_symbol_len(*str2);
66 if (char1_size != char2_size)
67 return false;
68 return (strncmp(str1, str2, char1_size) == 0);
69}
70
71const char *utf8_pbrk(const char *s, const char *set) {
72 for (; *s != 0; s = utf8_inc(s))

Callers 2

utf8_pbrkFunction · 0.85
utf8_chrFunction · 0.85

Calls 1

utf8_symbol_lenFunction · 0.85

Tested by

no test coverage detected