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
xtd.core
include
xtd
io
string_reader.h
Go to the documentation of this file.
1
4
#pragma once
5
6
#include <sstream>
7
#include "
text_reader.h
"
8
10
namespace
xtd
{
12
namespace
io {
19
class
string_reader
:
public
xtd::io::text_reader
{
20
public
:
23
string_reader
(
const
xtd::ustring
& input);
24
27
int32_t
peek
()
const override
;
28
31
int32_t
read
()
override
;
32
33
private
:
34
mutable
std::stringstream stream_;
35
};
36
}
37
}
xtd::io::string_reader
Implements a xtd::io::text_reader that reads from a string.
Definition:
string_reader.h:19
xtd::io::string_reader::peek
int32_t peek() const override
Reads the next character without changing the state of the reader or the character source....
xtd::io::string_reader::string_reader
string_reader(const xtd::ustring &input)
Initializes a new instance of the stream_reader class for the specified file name.
xtd::io::string_reader::read
int32_t read() override
Reads the next character from the input stream and advances the character position by one character.
xtd::io::text_reader
Represents a reader that can read a sequential series of characters.
Definition:
text_reader.h:29
xtd::ustring
Represents text as a sequence of UTF-8 code units.
Definition:
ustring.h:48
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition:
system_report.h:17
text_reader.h
Contains xtd::io::text_reader class.
Generated on Sat Jan 28 2023 18:12:25 for xtd - Reference Guide by
Gammasoft
. All rights reserved.