xtd 0.2.0
Loading...
Searching...
No Matches
string_reader.h
Go to the documentation of this file.
1
4#pragma once
5#include "text_reader.h"
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.h:79
Implements a xtd::io::text_reader that reads from a string.
Definition string_reader.h: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.h:36
#define core_export_
Define shared library export.
Definition core_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::io::text_reader class.