xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
6 #include <sstream>
7 #include "text_reader.h"
10 namespace xtd {
12  namespace io {
20  public:
23  string_reader(const xtd::ustring& input);
27  int32_t peek() const override;
31  int32_t read() override;
33  private:
34  mutable std::stringstream stream_;
35  };
36  }
37 }
Implements a xtd::io::text_reader that reads from a string.
Definition: string_reader.h:19
Contains xtd::io::text_reader class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
string_reader(const xtd::ustring &input)
Initializes a new instance of the stream_reader class for the specified file name.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
int32_t peek() const override
Reads the next character without changing the state of the reader or the character source...
Represents a reader that can read a sequential series of characters.
Definition: text_reader.h:29
int32_t read() override
Reads the next character from the input stream and advances the character position by one character...