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

Function Split

util/string/split.h:400–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398
399template <class T>
400static inline void Split(char* buf, char ch, T* res) {
401 res->resize(0);
402 if (*buf == 0) {
403 return;
404 }
405
406 TCharDelimiter<char> delim(ch);
407 TSimplePusher<T> pusher = {res};
408
409 SplitString(buf, delim, pusher);
410}
411
412/// Split string into res vector. Res vector is cleared before split.
413/// Old good slow split function.

Callers 3

Y_UNIT_TESTFunction · 0.70
SplitOffMethod · 0.50
NextTokTemplateMethod · 0.50

Calls 7

GetNextFunction · 0.85
IsInitedMethod · 0.80
SplitStringFunction · 0.70
resizeMethod · 0.45
clearMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected