aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pire
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 /library/cpp/regex/pire
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/pire')
-rw-r--r--library/cpp/regex/pire/pcre2pire.cpp2
-rw-r--r--library/cpp/regex/pire/pcre2pire.h4
-rw-r--r--library/cpp/regex/pire/regexp.h26
-rw-r--r--library/cpp/regex/pire/ut/ya.make2
4 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/regex/pire/pcre2pire.cpp b/library/cpp/regex/pire/pcre2pire.cpp
index d989656e1c..f788beb85f 100644
--- a/library/cpp/regex/pire/pcre2pire.cpp
+++ b/library/cpp/regex/pire/pcre2pire.cpp
@@ -3,7 +3,7 @@
#include <util/generic/yexception.h>
TString Pcre2Pire(const TString& src) {
- TVector<char> result;
+ TVector<char> result;
result.reserve(src.size() + 1);
enum EState {
diff --git a/library/cpp/regex/pire/pcre2pire.h b/library/cpp/regex/pire/pcre2pire.h
index 054fea6f01..46e45b9193 100644
--- a/library/cpp/regex/pire/pcre2pire.h
+++ b/library/cpp/regex/pire/pcre2pire.h
@@ -2,7 +2,7 @@
// Author: smikler@yandex-team.ru
-#include <util/generic/string.h>
+#include <util/generic/string.h>
/* Converts pcre regular expression to pire compatible format:
* - replaces "\\#" with "#"
@@ -16,4 +16,4 @@
* NOTE:
* - Not fully tested!
*/
-TString Pcre2Pire(const TString& src);
+TString Pcre2Pire(const TString& src);
diff --git a/library/cpp/regex/pire/regexp.h b/library/cpp/regex/pire/regexp.h
index f3b98bc91c..94bba4064b 100644
--- a/library/cpp/regex/pire/regexp.h
+++ b/library/cpp/regex/pire/regexp.h
@@ -6,7 +6,7 @@
#include <library/cpp/charset/recyr.hh>
#include <util/generic/maybe.h>
#include <util/generic/strbuf.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <util/generic/yexception.h>
@@ -15,22 +15,22 @@ namespace NRegExp {
struct TFsmBase {
struct TOptions {
- inline TOptions& SetCaseInsensitive(bool v) noexcept {
+ inline TOptions& SetCaseInsensitive(bool v) noexcept {
CaseInsensitive = v;
return *this;
}
- inline TOptions& SetSurround(bool v) noexcept {
+ inline TOptions& SetSurround(bool v) noexcept {
Surround = v;
return *this;
}
- inline TOptions& SetCapture(size_t pos) noexcept {
+ inline TOptions& SetCapture(size_t pos) noexcept {
CapturePos = pos;
return *this;
}
- inline TOptions& SetCharset(ECharset charset) noexcept {
+ inline TOptions& SetCharset(ECharset charset) noexcept {
Charset = charset;
return *this;
}
@@ -118,7 +118,7 @@ namespace NRegExp {
{
}
- inline const TScanner& GetScanner() const noexcept {
+ inline const TScanner& GetScanner() const noexcept {
return Scanner;
}
@@ -202,7 +202,7 @@ namespace NRegExp {
Fsm.GetScanner().Initialize(State);
}
- inline bool Final() const noexcept {
+ inline bool Final() const noexcept {
return GetScanner().Final(GetState());
}
@@ -217,11 +217,11 @@ namespace NRegExp {
}
}
- inline const typename TFsm::TScanner& GetScanner() const noexcept {
+ inline const typename TFsm::TScanner& GetScanner() const noexcept {
return Fsm.GetScanner();
}
- inline const TState& GetState() const noexcept {
+ inline const TState& GetState() const noexcept {
return State;
}
@@ -245,13 +245,13 @@ namespace NRegExp {
return Match(s.data(), s.size(), addBegin, addEnd);
}
- inline const char* Find(const char* b, const char* e) noexcept {
+ inline const char* Find(const char* b, const char* e) noexcept {
return NPire::ShortestPrefix(GetScanner(), b, e);
}
typedef std::pair<const size_t*, const size_t*> TMatchedRegexps;
- inline TMatchedRegexps MatchedRegexps() const noexcept {
+ inline TMatchedRegexps MatchedRegexps() const noexcept {
return GetScanner().AcceptedRegexps(GetState());
}
};
@@ -263,7 +263,7 @@ namespace NRegExp {
{
}
- inline bool Captured() const noexcept {
+ inline bool Captured() const noexcept {
return GetState().Captured();
}
@@ -277,7 +277,7 @@ namespace NRegExp {
return Search(s.data(), s.size());
}
- inline TStringBuf GetCaptured() const noexcept {
+ inline TStringBuf GetCaptured() const noexcept {
return TStringBuf(Data.data() + GetState().Begin() - 1,
Data.data() + GetState().End() - 1);
}
diff --git a/library/cpp/regex/pire/ut/ya.make b/library/cpp/regex/pire/ut/ya.make
index 117ef9694f..8776695f40 100644
--- a/library/cpp/regex/pire/ut/ya.make
+++ b/library/cpp/regex/pire/ut/ya.make
@@ -1,4 +1,4 @@
-# this test in not linked into build tree with ReCURSE and is built by unittest/library
+# this test in not linked into build tree with ReCURSE and is built by unittest/library
UNITTEST()