aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pcre/regexp.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/regex/pcre/regexp.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/pcre/regexp.cpp')
-rw-r--r--library/cpp/regex/pcre/regexp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/regex/pcre/regexp.cpp b/library/cpp/regex/pcre/regexp.cpp
index 487a9100b9..575c09cee4 100644
--- a/library/cpp/regex/pcre/regexp.cpp
+++ b/library/cpp/regex/pcre/regexp.cpp
@@ -5,9 +5,9 @@
#include <util/system/defaults.h>
#include <cstdlib>
-#include <util/generic/noncopyable.h>
+#include <util/generic/noncopyable.h>
-class TGlobalImpl : TNonCopyable {
+class TGlobalImpl : TNonCopyable {
private:
const char* Str;
regmatch_t* Pmatch;
@@ -149,13 +149,13 @@ public:
: CompileOptions(cflags)
, RegExpr(re)
{
- int rc = regcomp(&Preg, re.data(), cflags);
+ int rc = regcomp(&Preg, re.data(), cflags);
if (rc) {
const size_t ERRBUF_SIZE = 100;
char errbuf[ERRBUF_SIZE];
regerror(rc, &Preg, errbuf, ERRBUF_SIZE);
Error = "Error: regular expression " + re + " is wrong: " + errbuf;
- ythrow yexception() << "RegExp " << re << ": " << Error.data();
+ ythrow yexception() << "RegExp " << re << ": " << Error.data();
}
}
@@ -297,7 +297,7 @@ int TRegExSubst::ParseReplacement(const char* repl) {
while (IsAsciiDigit(*pos2))
pos2++;
if (pos2 > pos1 + 1) {
- Brfs[i].Refer = atol(TString(Replacement, pos1 + 1 - Replacement, pos2 - (pos1 + 1)).data());
+ Brfs[i].Refer = atol(TString(Replacement, pos1 + 1 - Replacement, pos2 - (pos1 + 1)).data());
} else {
pos1++;
if (*pos2 == '$')