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

Function SplitString

util/string/split.h:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <class I, class TDelim, class TConsumer>
53std::enable_if_t<::NStringSplitPrivate::TIsConsumerV<TConsumer, I>>
54SplitString(I b, I e, const TDelim& d, TConsumer&& c) {
55 I l, i;
56
57 do {
58 l = b;
59 i = d.Find(b, e);
60 } while (c.Consume(l, i, b) && (b != i));
61}
62
63template <class I, class TDelim, class TConsumer>
64std::enable_if_t<::NStringSplitPrivate::TIsConsumerV<TConsumer, I>>

Callers 15

TestDelimiterOnStringFunction · 0.70
TestDelimiterOnRangeFunction · 0.70
TestConsumerOnStringFunction · 0.70
TestConsumerOnRangeFunction · 0.70
Y_UNIT_TESTFunction · 0.70
SplitFunction · 0.70
DoSplit2Function · 0.70
TCollectionMethod · 0.50
TCollectionMethod · 0.50
GetSectionMethod · 0.50

Calls 2

FindMethod · 0.45
ConsumeMethod · 0.45

Tested by 6

TestDelimiterOnStringFunction · 0.56
TestDelimiterOnRangeFunction · 0.56
TestConsumerOnStringFunction · 0.56
TestConsumerOnRangeFunction · 0.56