xtd 0.2.0
string_reader.h
Go to the documentation of this file.
1 #pragma once
5 #include "text_reader.h"
6 #include <sstream>
7 
9 namespace xtd {
11  namespace io {
25  class core_export_ string_reader : public xtd::io::text_reader {
26  public:
28 
32  explicit string_reader(const xtd::ustring& input);
34 
36 
40  int32 peek() const override;
41 
44  int32 read() override;
46 
47  private:
48  mutable std::stringstream stream_;
49  };
50  }
51 }
Implements a xtd::io::text_reader that reads from a string.
Definition: string_reader.h:25
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
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents a reader that can read a sequential series of characters.
Definition: text_reader.h:34
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Read access to the file. Data can be read from the file. Combine with Write for read/write access...