aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorradix <radix@yandex-team.ru>2022-02-10 16:49:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:44 +0300
commit24658cfd172ef5de124df383c334079783154fbf (patch)
treebccc29f3945c7245036b5973bcc7358a760fcc25 /util
parentceabccd128eb94ed6566936fcab2093ec62aa84a (diff)
downloadydb-24658cfd172ef5de124df383c334079783154fbf.tar.gz
Restoring authorship annotation for <radix@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/folder/pathsplit.cpp2
-rw-r--r--util/generic/strbuf.h94
2 files changed, 48 insertions, 48 deletions
diff --git a/util/folder/pathsplit.cpp b/util/folder/pathsplit.cpp
index 81d439a727..0477fbc033 100644
--- a/util/folder/pathsplit.cpp
+++ b/util/folder/pathsplit.cpp
@@ -36,7 +36,7 @@ void TPathSplitTraitsUnix::DoParsePart(const TStringBuf part0) {
TStringBuf next(part0);
TStringBuf part;
- while (TStringBuf(next).TrySplit('/', part, next)) {
+ while (TStringBuf(next).TrySplit('/', part, next)) {
AppendComponent(part);
}
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h
index 70b9360d58..e23d257fd4 100644
--- a/util/generic/strbuf.h
+++ b/util/generic/strbuf.h
@@ -171,63 +171,63 @@ public:
return data() != nullptr;
}
-public:
- /**
- * Tries to split string in two parts using given delimiter character.
- * Searches for the delimiter, scanning string from the beginning.
- * The delimiter is excluded from the result. Both out parameters are
- * left unmodified if there was no delimiter character in string.
- *
- * @param[in] delim Delimiter character.
- * @param[out] l The first part of split result.
- * @param[out] r The second part of split result.
- * @returns Whether the split was actually performed.
- */
+public:
+ /**
+ * Tries to split string in two parts using given delimiter character.
+ * Searches for the delimiter, scanning string from the beginning.
+ * The delimiter is excluded from the result. Both out parameters are
+ * left unmodified if there was no delimiter character in string.
+ *
+ * @param[in] delim Delimiter character.
+ * @param[out] l The first part of split result.
+ * @param[out] r The second part of split result.
+ * @returns Whether the split was actually performed.
+ */
inline bool TrySplit(TCharType delim, TdSelf& l, TdSelf& r) const noexcept {
return TrySplitOn(TBase::find(delim), l, r);
}
- /**
- * Tries to split string in two parts using given delimiter character.
- * Searches for the delimiter, scanning string from the end.
- * The delimiter is excluded from the result. Both out parameters are
- * left unmodified if there was no delimiter character in string.
- *
- * @param[in] delim Delimiter character.
- * @param[out] l The first part of split result.
- * @param[out] r The second part of split result.
- * @returns Whether the split was actually performed.
- */
+ /**
+ * Tries to split string in two parts using given delimiter character.
+ * Searches for the delimiter, scanning string from the end.
+ * The delimiter is excluded from the result. Both out parameters are
+ * left unmodified if there was no delimiter character in string.
+ *
+ * @param[in] delim Delimiter character.
+ * @param[out] l The first part of split result.
+ * @param[out] r The second part of split result.
+ * @returns Whether the split was actually performed.
+ */
inline bool TryRSplit(TCharType delim, TdSelf& l, TdSelf& r) const noexcept {
return TrySplitOn(TBase::rfind(delim), l, r);
}
- /**
- * Tries to split string in two parts using given delimiter sequence.
- * Searches for the delimiter, scanning string from the beginning.
- * The delimiter sequence is excluded from the result. Both out parameters
- * are left unmodified if there was no delimiter character in string.
- *
- * @param[in] delim Delimiter sequence.
- * @param[out] l The first part of split result.
- * @param[out] r The second part of split result.
- * @returns Whether the split was actually performed.
- */
+ /**
+ * Tries to split string in two parts using given delimiter sequence.
+ * Searches for the delimiter, scanning string from the beginning.
+ * The delimiter sequence is excluded from the result. Both out parameters
+ * are left unmodified if there was no delimiter character in string.
+ *
+ * @param[in] delim Delimiter sequence.
+ * @param[out] l The first part of split result.
+ * @param[out] r The second part of split result.
+ * @returns Whether the split was actually performed.
+ */
inline bool TrySplit(TdSelf delim, TdSelf& l, TdSelf& r) const noexcept {
return TrySplitOn(TBase::find(delim), l, r, delim.size());
}
- /**
- * Tries to split string in two parts using given delimiter sequence.
- * Searches for the delimiter, scanning string from the end.
- * The delimiter sequence is excluded from the result. Both out parameters
- * are left unmodified if there was no delimiter character in string.
- *
- * @param[in] delim Delimiter sequence.
- * @param[out] l The first part of split result.
- * @param[out] r The second part of split result.
- * @returns Whether the split was actually performed.
- */
+ /**
+ * Tries to split string in two parts using given delimiter sequence.
+ * Searches for the delimiter, scanning string from the end.
+ * The delimiter sequence is excluded from the result. Both out parameters
+ * are left unmodified if there was no delimiter character in string.
+ *
+ * @param[in] delim Delimiter sequence.
+ * @param[out] l The first part of split result.
+ * @param[out] r The second part of split result.
+ * @returns Whether the split was actually performed.
+ */
inline bool TryRSplit(TdSelf delim, TdSelf& l, TdSelf& r) const noexcept {
return TrySplitOn(TBase::rfind(delim), l, r, delim.size());
}
@@ -521,7 +521,7 @@ private:
template <typename TDelimiterType>
inline void SplitTemplate(TDelimiterType delim, TdSelf& l, TdSelf& r) const noexcept {
- if (!TrySplit(delim, l, r)) {
+ if (!TrySplit(delim, l, r)) {
l = *this;
r = TdSelf();
}
@@ -529,7 +529,7 @@ private:
template <typename TDelimiterType>
inline void RSplitTemplate(TDelimiterType delim, TdSelf& l, TdSelf& r) const noexcept {
- if (!TryRSplit(delim, l, r)) {
+ if (!TryRSplit(delim, l, r)) {
r = *this;
l = TdSelf();
}