xtd 0.2.0
Loading...
Searching...
No Matches
string_reader.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "text_reader.hpp"
6#include <sstream>
7
9namespace xtd {
11 namespace io {
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}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Implements a xtd::io::text_reader that reads from a string.
Definition string_reader.hpp:27
int32 read() override
Reads the next character from the input stream and advances the character position by one character.
int32 peek() const override
Reads the next character without changing the state of the reader or the character source....
string_reader(const xtd::string &input)
Initializes a new instance of the stream_reader class for the specified file name.
Represents a reader that can read a sequential series of characters.
Definition text_reader.hpp:36
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::io::text_reader class.