xtd - Reference Guide 0.2.0
string_reader.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include <sstream>
7 #include "text_reader.h"
8 
10 namespace xtd {
12  namespace io {
24  class core_export_ string_reader : public xtd::io::text_reader {
25  public:
27 
31  explicit string_reader(const xtd::ustring& input);
33 
35 
39  int32_t peek() const override;
40 
43  int32_t read() override;
45 
46  private:
47  mutable std::stringstream stream_;
48  };
49  }
50 }
Implements a xtd::io::text_reader that reads from a string.
Definition: string_reader.h:24
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:50
Represents a reader that can read a sequential series of characters.
Definition: text_reader.h:34
Read access to the file. Data can be read from the file. Combine with Write for read/write access...