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

Function CopyToken

library/cpp/tokenizer/multitokenutil.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 }
12
13 inline void CopyToken(TCharSpan* desttok, const TCharSpan* srctok, size_t destpos) {
14 Y_ASSERT(srctok->PrefixLen == 0);
15 desttok->Pos = destpos;
16 desttok->Len = srctok->Len;
17 desttok->SuffixLen = srctok->SuffixLen;
18 desttok->Type = srctok->Type;
19 desttok->Hyphen = srctok->Hyphen; // the next token can have hyphenation
20 desttok->TokenDelim = srctok->TokenDelim;
21 }
22
23 //! processes hyphenation between subtokens if any
24 inline void ProcessHyphenation(wchar16* buffer, const wchar16* entry, TCharSpan*& desttok, const TCharSpan* srctok, size_t& destpos, size_t& srcpos) {

Callers 1

ProcessHyphenationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected