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

Function CopyTokenText

library/cpp/tokenizer/multitokenutil.cpp:69–73  ·  view source on GitHub ↗

@param len length of text to be copied (it can include suffix length)

Source from the content-addressed store, hash-verified

67
68 //! @param len length of text to be copied (it can include suffix length)
69 inline void CopyTokenText(wchar16* buffer, const wchar16* entry, size_t len, size_t& destpos, size_t& srcpos) {
70 std::char_traits<wchar16>::copy(buffer + destpos, entry + srcpos, len); // srcpos - the beginning of source token
71 srcpos += len;
72 destpos += len;
73 }
74
75 inline bool CutSubtoken(TCharSpan& s, size_t maxLen) {
76 if (s.EndPos() > maxLen) {

Callers 1

PrepareMultitokenFunction · 0.85

Calls 1

copyFunction · 0.50

Tested by

no test coverage detected