xtd
0.2.0
Loading...
Searching...
No Matches
xtd.core
include
xtd
io
string_reader.h
Go to the documentation of this file.
1
4
#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
}
xtd::io::string_reader
Implements a xtd::io::text_reader that reads from a string.
Definition
string_reader.h:25
xtd::io::string_reader::read
int32 read() override
Reads the next character from the input stream and advances the character position by one character.
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::peek
int32 peek() const override
Reads the next character without changing the state of the reader or the character source....
xtd::io::text_reader
Represents a reader that can read a sequential series of characters.
Definition
text_reader.h:34
xtd::ustring
Represents text as a sequence of UTF-8 code units.
Definition
ustring.h:47
core_export_
#define core_export_
Define shared library export.
Definition
core_export.h:13
xtd::int32
int_least32_t int32
Represents a 32-bit signed integer.
Definition
types.h:131
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
xtd_about_box.h:10
text_reader.h
Contains xtd::io::text_reader class.
Generated on Wed Apr 10 2024 00:07:11 for xtd by
Gammasoft
. All rights reserved.