aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/input.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/input.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/input.cpp')
-rw-r--r--util/stream/input.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/stream/input.cpp b/util/stream/input.cpp
index eb99b10809..6e8170f2f9 100644
--- a/util/stream/input.cpp
+++ b/util/stream/input.cpp
@@ -4,7 +4,7 @@
#include <util/charset/wide.h>
#include <util/memory/tempbuf.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/yexception.h>
#include <util/generic/singleton.h>
#include <util/string/cast.h>
@@ -89,7 +89,7 @@ size_t IInputStream::ReadLine(TString& st) {
}
size_t IInputStream::ReadLine(TUtf16String& w) {
- TString s;
+ TString s;
size_t result = ReadLine(s);
if (result) {
@@ -100,7 +100,7 @@ size_t IInputStream::ReadLine(TUtf16String& w) {
}
TString IInputStream::ReadLine() {
- TString ret;
+ TString ret;
if (!ReadLine(ret)) {
ythrow yexception() << "can not read line from stream";
@@ -110,7 +110,7 @@ TString IInputStream::ReadLine() {
}
TString IInputStream::ReadTo(char ch) {
- TString ret;
+ TString ret;
if (!ReadTo(ret, ch)) {
ythrow yexception() << "can not read from stream";
@@ -146,7 +146,7 @@ size_t IInputStream::DoSkip(size_t sz) {
}
TString IInputStream::ReadAll() {
- TString result;
+ TString result;
TStringOutput stream(result);
DoReadAll(stream);
@@ -190,7 +190,7 @@ namespace {
free(B_);
}
- size_t DoReadTo(TString& st, char ch) override {
+ size_t DoReadTo(TString& st, char ch) override {
auto&& guard = Guard(M_);
(void)guard;
@@ -227,7 +227,7 @@ namespace {
using TGetLine = TGetLineBase;
#else
struct TGetLine: public TGetLineBase {
- size_t DoReadTo(TString& st, char ch) override {
+ size_t DoReadTo(TString& st, char ch) override {
if (ch == '\n') {
size_t len = 0;
auto r = fgetln(F_, &len);
@@ -285,7 +285,7 @@ void In<TString>(IInputStream& i, TString& s) {
template <>
void In<TUtf16String>(IInputStream& i, TUtf16String& w) {
- TString s;
+ TString s;
ReadUpToDelimiter(i, s);
if (s.empty()) {