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

Function ReadUpToDelimiter

util/stream/input.cpp:265–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static void ReadUpToDelimiter(IInputStream& i, TString& s) {
266 char c;
267 while (i.ReadChar(c)) { // skip delimiters
268 if (!IsStdDelimiter(c)) {
269 s += c;
270 break;
271 }
272 }
273 while (i.ReadChar(c) && !IsStdDelimiter(c)) { // read data (with trailing delimiter)
274 s += c;
275 }
276}
277
278// specialization for string-related stuff
279

Callers 2

In<TString>Function · 0.85
In<TUtf16String>Function · 0.85

Calls 2

IsStdDelimiterFunction · 0.85
ReadCharMethod · 0.80

Tested by

no test coverage detected