diff options
| author | Vlad Yaroslavlev <[email protected]> | 2022-02-10 16:46:23 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:23 +0300 | 
| commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
| tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/regex/pire | |
| parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex/pire')
| -rw-r--r-- | library/cpp/regex/pire/pcre2pire.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/regex/pire/pcre2pire.h | 4 | ||||
| -rw-r--r-- | library/cpp/regex/pire/regexp.h | 26 | ||||
| -rw-r--r-- | library/cpp/regex/pire/ut/ya.make | 2 | 
4 files changed, 17 insertions, 17 deletions
| diff --git a/library/cpp/regex/pire/pcre2pire.cpp b/library/cpp/regex/pire/pcre2pire.cpp index f788beb85f4..d989656e1ce 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 46e45b91930..054fea6f01e 100644 --- a/library/cpp/regex/pire/pcre2pire.h +++ b/library/cpp/regex/pire/pcre2pire.h @@ -2,7 +2,7 @@  // Author: [email protected] -#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 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);          } diff --git a/library/cpp/regex/pire/ut/ya.make b/library/cpp/regex/pire/ut/ya.make index 8776695f405..117ef9694f6 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() | 
