xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
io
string_reader.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
text_reader.hpp
"
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
[[nodiscard]]
auto
peek
() const ->
xtd
::
int32
override;
43
46
[[nodiscard]] auto
read
() ->
xtd
::
int32
override;
48
49
private:
50
mutable std::stringstream stream_;
51
};
52
}
53
}
xtd::io::string_reader::peek
auto peek() const -> xtd::int32 override
Reads the next character without changing the state of the reader or the character source....
xtd::io::string_reader::read
auto read() -> xtd::int32 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::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.hpp:38
core_export_
#define core_export_
Define shared library export.
Definition
core_export.hpp:13
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
xtd::io
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition
binary_reader.hpp:17
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
text_reader.hpp
Contains xtd::io::text_reader class.
Generated on
for xtd by
Gammasoft
. All rights reserved.