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 {
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}
Implements a xtd::io::text_reader that reads from a string.
Definition string_reader.h:25
int32 read() override
Reads the next character from the input stream and advances the character position by one character.
string_reader(const xtd::ustring &input)
Initializes a new instance of the stream_reader class for the specified file name.
int32 peek() const override
Reads the next character without changing the state of the reader or the character source....
Represents a reader that can read a sequential series of characters.
Definition text_reader.h:34
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::io::text_reader class.