MCPcopy Create free account
hub / github.com/catboost/catboost / FindNonAccent

Function FindNonAccent

library/cpp/tokenizer/nlpparser.cpp:16–24  ·  view source on GitHub ↗

returns pointer to the first non-accent symbol, if it is not found - returns NULL

Source from the content-addressed store, hash-verified

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));

Callers 1

CutTooLongMultitokenMethod · 0.85

Calls 1

CheckMethod · 0.45

Tested by

no test coverage detected