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 {
27
class
core_export_
string_reader
:
public
xtd::io::text_reader
{
28
public
:
30
34
explicit
string_reader
(
const
xtd::string
& input);
36
38
42
int32
peek
()
const override
;
43
46
int32
read
()
override
;
48
49
private
:
50
mutable
std::stringstream stream_;
51
};
52
}
53
}
xtd::basic_string
Represents text as a sequence of character units.
Definition
basic_string.h:79
xtd::io::string_reader
Implements a xtd::io::text_reader that reads from a string.
Definition
string_reader.h:27
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::peek
int32 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::string &input)
Initializes a new instance of the stream_reader class for the specified file name.
xtd::io::text_reader
Represents a reader that can read a sequential series of characters.
Definition
text_reader.h:36
core_export_
#define core_export_
Define shared library export.
Definition
core_export.h:13
xtd::int32
int32_t int32
Represents a 32-bit signed integer.
Definition
int32.h:23
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 Sun Nov 17 2024 19:43:52 for xtd by
Gammasoft
. All rights reserved.