aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pire/regexp.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/regex/pire/regexp.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex/pire/regexp.h')
-rw-r--r--library/cpp/regex/pire/regexp.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/regex/pire/regexp.h b/library/cpp/regex/pire/regexp.h
index 94bba4064b7..f3b98bc91c3 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);
}