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

Method Next

library/cpp/deprecated/split/split_iterator.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51TSizeTRegion TDelimitersSplit::Next(size_t& pos) const {
52 size_t begin = pos;
53 while ((pos < Len) && !Delimiters.IsDelimiter(Str[pos]))
54 ++pos;
55 TSizeTRegion result(begin, pos);
56
57 while ((pos < Len) && Delimiters.IsDelimiter(Str[pos]))
58 ++pos;
59
60 return result;
61}
62
63TDelimitersSplit::TIterator TDelimitersSplit::Iterator() const {
64 return TIterator(*this);

Callers 1

TestTailMethod · 0.45

Calls 2

IsDelimiterMethod · 0.80
SubStrMethod · 0.45

Tested by 1

TestTailMethod · 0.36