xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
string_reader.h
Go to the documentation of this file.
1
4#pragma once
5
6#include <sstream>
7#include "text_reader.h"
8
10namespace xtd {
12 namespace io {
20 public:
24
27 int32_t peek() const override;
28
31 int32_t read() override;
32
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
int32_t peek() const override
Reads the next character without changing the state of the reader or the character source....
string_reader(const xtd::ustring &input)
Initializes a new instance of the stream_reader class for the specified file name.
int32_t read() override
Reads the next character from the input stream and advances the character position by one character.
Represents a reader that can read a sequential series of characters.
Definition: text_reader.h:29
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::io::text_reader class.