| 77 | } |
| 78 | |
| 79 | char *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 | |
| 90 | size_t utf8_length(const char *string) { |
| 91 | auto it = string; |
nothing calls this directly
no test coverage detected