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

Function GlueTokens

library/cpp/tokenizer/multitokenutil.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4namespace {
5 inline void GlueTokens(TCharSpan* desttok, const TCharSpan* srctok) {
6 Y_ASSERT(srctok->PrefixLen == 0);
7 desttok->Len += srctok->Len;
8 desttok->SuffixLen = srctok->SuffixLen;
9 desttok->Hyphen = srctok->Hyphen; // the next token can have hyphenation
10 desttok->TokenDelim = srctok->TokenDelim;
11 }
12
13 inline void CopyToken(TCharSpan* desttok, const TCharSpan* srctok, size_t destpos) {
14 Y_ASSERT(srctok->PrefixLen == 0);

Callers 1

ProcessHyphenationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected