line_split.h 305 B

12345678910111213141516
  1. #pragma once
  2. #include <util/stream/input.h>
  3. #include <util/generic/string.h>
  4. class TLineSplitter final {
  5. public:
  6. explicit TLineSplitter(IInputStream& stream);
  7. size_t Next(TString& st);
  8. private:
  9. IInputStream& Stream_;
  10. bool HasPendingLineChar_ = false;
  11. char PendingLineChar_ = 0;
  12. };