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

Method ReadLine

util/stream/input.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81size_t IInputStream::ReadLine(TString& st) {
82 const size_t ret = ReadTo(st, '\n');
83
84 if (ret && !st.empty() && st.back() == '\r') {
85 st.pop_back();
86 }
87
88 return ret;
89}
90
91size_t IInputStream::ReadLine(TUtf16String& w) {
92 TString s;

Callers 14

LoadMethod · 0.45
LoadMethod · 0.45
ParseMethod · 0.45
TestSockMethod · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
TestStringStreamMethod · 0.45
TestReadLineMethod · 0.45
TestStreamReadTo2Function · 0.45
TestStreamReadTo3Function · 0.45

Calls 5

ReadLineFunction · 0.85
UTF8ToWideFunction · 0.50
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by 7

TestSockMethod · 0.36
TestStringStreamMethod · 0.36
TestReadLineMethod · 0.36
TestStreamReadTo2Function · 0.36
TestStreamReadTo3Function · 0.36
TestStrokaInputFunction · 0.36
TestWtrokaInputMethod · 0.36