aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pcre
diff options
context:
space:
mode:
authorkimkim <kimkim@yandex-team.ru>2022-02-10 16:49:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:27 +0300
commit13f84424ed9975f6827d9786087c6fe6ea265cda (patch)
treeb94acc282c49a5de96b9e3e19feead21736f3273 /library/cpp/regex/pcre
parent35f29a67a6b8e50e1826c837330086049114c5ba (diff)
downloadydb-13f84424ed9975f6827d9786087c6fe6ea265cda.tar.gz
Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex/pcre')
-rw-r--r--library/cpp/regex/pcre/regexp.cpp8
-rw-r--r--library/cpp/regex/pcre/regexp.h4
-rw-r--r--library/cpp/regex/pcre/ya.make20
3 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/regex/pcre/regexp.cpp b/library/cpp/regex/pcre/regexp.cpp
index 575c09cee4..407eab0960 100644
--- a/library/cpp/regex/pcre/regexp.cpp
+++ b/library/cpp/regex/pcre/regexp.cpp
@@ -30,7 +30,7 @@ private:
Pmatch[MatchPos].rm_eo = MatchBuf[2 * i + 1];
MatchPos++;
if (MatchPos >= NMATCHES) {
- ythrow yexception() << "TRegExBase::Exec(): Not enough space in internal buffer.";
+ ythrow yexception() << "TRegExBase::Exec(): Not enough space in internal buffer.";
}
}
}
@@ -47,7 +47,7 @@ private:
NMATCHES); /* number of elements in the output vector */
if (rc == 0) {
- ythrow yexception() << "TRegExBase::Exec(): Not enough space in internal buffer.";
+ ythrow yexception() << "TRegExBase::Exec(): Not enough space in internal buffer.";
}
return rc;
@@ -161,10 +161,10 @@ public:
int Exec(const char* str, regmatch_t pmatch[], int eflags, int nmatches) const {
if (!RegExpr) {
- ythrow yexception() << "Regular expression is not compiled";
+ ythrow yexception() << "Regular expression is not compiled";
}
if (!str) {
- ythrow yexception() << "Empty string is passed to TRegExBaseImpl::Exec";
+ ythrow yexception() << "Empty string is passed to TRegExBaseImpl::Exec";
}
if ((eflags & REGEXP_GLOBAL) == 0) {
return regexec(&Preg, str, nmatches, pmatch, eflags);
diff --git a/library/cpp/regex/pcre/regexp.h b/library/cpp/regex/pcre/regexp.h
index bc610bd2f3..af415be70c 100644
--- a/library/cpp/regex/pcre/regexp.h
+++ b/library/cpp/regex/pcre/regexp.h
@@ -2,9 +2,9 @@
#include <sys/types.h>
-#include <util/system/defaults.h>
+#include <util/system/defaults.h>
#include <util/generic/string.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
#include <contrib/libs/pcre/pcre.h>
#include <contrib/libs/pcre/pcreposix.h>
diff --git a/library/cpp/regex/pcre/ya.make b/library/cpp/regex/pcre/ya.make
index d34911f103..e997f0751c 100644
--- a/library/cpp/regex/pcre/ya.make
+++ b/library/cpp/regex/pcre/ya.make
@@ -1,20 +1,20 @@
LIBRARY()
OWNER(g:util)
-
-PEERDIR(
- contrib/libs/pcre
+
+PEERDIR(
+ contrib/libs/pcre
contrib/libs/pcre/pcre16
contrib/libs/pcre/pcre32
library/cpp/containers/stack_array
-)
-
-SRCS(
+)
+
+SRCS(
pcre.cpp
- regexp.cpp
-)
-
-END()
+ regexp.cpp
+)
+
+END()
RECURSE_FOR_TESTS(
benchmark