returns pointer to the first non-accent symbol, if it is not found - returns NULL
| 14 | |
| 15 | //! returns pointer to the first non-accent symbol, if it is not found - returns NULL |
| 16 | const wchar16* FindNonAccent(const wchar16* p, size_t n) { |
| 17 | const TAccents accents; |
| 18 | const wchar16* const e = p + n; |
| 19 | for (; p != e; ++p) { |
| 20 | if (!accents.Check(*p)) |
| 21 | break; |
| 22 | } |
| 23 | return p; |
| 24 | } |
| 25 | |
| 26 | inline char HexToChar(char h) { |
| 27 | Y_ASSERT(isxdigit(h)); |
no test coverage detected