diff options
author | pervyshev <[email protected]> | 2022-02-10 16:52:09 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:52:09 +0300 |
commit | ccad5350efcb83fa360b6b79b0b854374d84eec3 (patch) | |
tree | 1f074cc7c773d68280a4a5f1eb043fb3020350a7 /util/generic/strbuf.h | |
parent | 8641c381e70674b34647334bc47f6f8108908e0a (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/strbuf.h')
-rw-r--r-- | util/generic/strbuf.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h index 70b9360d580..db25e9feba7 100644 --- a/util/generic/strbuf.h +++ b/util/generic/strbuf.h @@ -239,7 +239,7 @@ public: inline void RSplit(TCharType delim, TdSelf& l, TdSelf& r) const noexcept { RSplitTemplate(delim, l, r); } - + inline void Split(TdSelf delim, TdSelf& l, TdSelf& r) const noexcept { SplitTemplate(delim, l, r); } @@ -257,8 +257,8 @@ private: const TdSelf tok = SubStr(pos + len); l = Head(pos); r = tok; - } - + } + public: // In all methods below with @pos parameter, @pos is supposed to be // a result of string find()/rfind()/find_first() or other similiar functions, @@ -384,11 +384,11 @@ public: } TdSelf RSplitOff(TCharType delim) { - TdSelf tok; - RSplit(delim, tok, *this); - return tok; - } - + TdSelf tok; + RSplit(delim, tok, *this); + return tok; + } + bool NextTok(TCharType delim, TdSelf& tok) { return NextTokTemplate(delim, tok); } @@ -423,8 +423,8 @@ public: TdSelf RNextTok(TCharType delim) { return RNextTokTemplate(delim); - } - + } + TdSelf NextTok(TdSelf delim) { return NextTokTemplate(delim); } |