diff options
| author | aosipenko <[email protected]> | 2022-02-10 16:48:08 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:08 +0300 | 
| commit | 69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/regex/pcre | |
| parent | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/pcre')
| -rw-r--r-- | library/cpp/regex/pcre/regexp.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/library/cpp/regex/pcre/regexp.cpp b/library/cpp/regex/pcre/regexp.cpp index d13d5325724..575c09cee40 100644 --- a/library/cpp/regex/pcre/regexp.cpp +++ b/library/cpp/regex/pcre/regexp.cpp @@ -1,7 +1,7 @@  #include "regexp.h"  #include <util/generic/string.h> -#include <util/string/ascii.h>  +#include <util/string/ascii.h>  #include <util/system/defaults.h>  #include <cstdlib> @@ -154,7 +154,7 @@ public:              const size_t ERRBUF_SIZE = 100;              char errbuf[ERRBUF_SIZE];              regerror(rc, &Preg, errbuf, ERRBUF_SIZE); -            Error = "Error: regular expression " + re + " is wrong: " + errbuf;  +            Error = "Error: regular expression " + re + " is wrong: " + errbuf;              ythrow yexception() << "RegExp " << re << ": " << Error.data();          }      } @@ -192,7 +192,7 @@ private:  };  bool TRegExBase::IsCompiled() const { -    return Impl && Impl->IsCompiled();  +    return Impl && Impl->IsCompiled();  }  TRegExBase::TRegExBase(const char* re, int cflags) { @@ -202,9 +202,9 @@ TRegExBase::TRegExBase(const char* re, int cflags) {  }  TRegExBase::TRegExBase(const TString& re, int cflags) { -    Compile(re, cflags);  -}  -  +    Compile(re, cflags); +} +  TRegExBase::~TRegExBase() {  } @@ -236,10 +236,10 @@ TRegExMatch::TRegExMatch(const char* re, int cflags)  }  TRegExMatch::TRegExMatch(const TString& re, int cflags) -    : TRegExBase(re, cflags)  -{  -}  -  +    : TRegExBase(re, cflags) +{ +} +  bool TRegExMatch::Match(const char* str) const {      return Exec(str, nullptr, 0, 0) == 0;  } @@ -294,7 +294,7 @@ int TRegExSubst::ParseReplacement(const char* repl) {          pos2 = pos1;          if (pos1) {              pos2 = pos1 + 1; -            while (IsAsciiDigit(*pos2))  +            while (IsAsciiDigit(*pos2))                  pos2++;              if (pos2 > pos1 + 1) {                  Brfs[i].Refer = atol(TString(Replacement, pos1 + 1 - Replacement, pos2 - (pos1 + 1)).data()); | 
