aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/strip.h
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-10 16:49:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:10 +0300
commit1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/string/strip.h
parent6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff)
downloadydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/strip.h')
-rw-r--r--util/string/strip.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/string/strip.h b/util/string/strip.h
index c9172ef19a..d5ef6da96d 100644
--- a/util/string/strip.h
+++ b/util/string/strip.h
@@ -69,11 +69,11 @@ struct TStripImpl {
const size_t oldLen = e - b;
if (stripBeg) {
- StripRangeBegin(b, e, criterion);
+ StripRangeBegin(b, e, criterion);
}
if (stripEnd) {
- StripRangeEnd(b, e, criterion);
+ StripRangeEnd(b, e, criterion);
}
const size_t newLen = e - b;
@@ -85,7 +85,7 @@ struct TStripImpl {
auto b = from.begin();
auto e = from.end();
- if (StripRange(b, e, criterion)) {
+ if (StripRange(b, e, criterion)) {
to = T(b, e - b);
return true;
@@ -99,7 +99,7 @@ struct TStripImpl {
template <class T, class TStripCriterion>
static inline T StripString(const T& from, TStripCriterion&& criterion) {
T ret;
- StripString(from, ret, criterion);
+ StripString(from, ret, criterion);
return ret;
}
@@ -111,7 +111,7 @@ struct TStripImpl {
template <class It, class TStripCriterion>
inline bool StripRange(It& b, It& e, TStripCriterion&& criterion) noexcept {
- return TStripImpl<true, true>::StripRange(b, e, criterion);
+ return TStripImpl<true, true>::StripRange(b, e, criterion);
}
template <class It>
@@ -123,7 +123,7 @@ template <class It, class TStripCriterion>
inline bool Strip(It& b, size_t& len, TStripCriterion&& criterion) noexcept {
It e = b + len;
- if (StripRange(b, e, criterion)) {
+ if (StripRange(b, e, criterion)) {
len = e - b;
return true;
@@ -139,7 +139,7 @@ inline bool Strip(It& b, size_t& len) noexcept {
template <class T, class TStripCriterion>
static inline bool StripString(const T& from, T& to, TStripCriterion&& criterion) {
- return TStripImpl<true, true>::StripString(from, to, criterion);
+ return TStripImpl<true, true>::StripString(from, to, criterion);
}
template <class T>
@@ -149,7 +149,7 @@ static inline bool StripString(const T& from, T& to) {
template <class T, class TStripCriterion>
static inline T StripString(const T& from, TStripCriterion&& criterion) {
- return TStripImpl<true, true>::StripString(from, criterion);
+ return TStripImpl<true, true>::StripString(from, criterion);
}
template <class T>
@@ -169,12 +169,12 @@ static inline T StripStringRight(const T& from) {
template <class T, class TStripCriterion>
static inline T StripStringLeft(const T& from, TStripCriterion&& criterion) {
- return TStripImpl<true, false>::StripString(from, criterion);
+ return TStripImpl<true, false>::StripString(from, criterion);
}
template <class T, class TStripCriterion>
static inline T StripStringRight(const T& from, TStripCriterion&& criterion) {
- return TStripImpl<false, true>::StripString(from, criterion);
+ return TStripImpl<false, true>::StripString(from, criterion);
}
/// Copies the given string removing leading and trailing spaces.