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

Function SubstrUTF8

util/charset/utf8.cpp:126–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126TStringBuf SubstrUTF8(const TStringBuf str Y_LIFETIME_BOUND, size_t pos, size_t len) {
127 const char* start = SkipUTF8Chars(str.begin(), str.end(), pos);
128 const char* end = SkipUTF8Chars(start, str.end(), len);
129 return TStringBuf(start, end - start);
130}
131
132EUTF8Detect UTF8Detect(const char* s, size_t len) {
133 const unsigned char* s0 = (const unsigned char*)s;

Callers 1

TestSubstrUTF8Method · 0.85

Calls 3

SkipUTF8CharsFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestSubstrUTF8Method · 0.68