aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pcre/regexp.h
diff options
context:
space:
mode:
authorlsurn <lsurn@yandex-team.ru>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:33 +0300
commit45e70bb2432018a4704845621cd9ddd2ceab6ffb (patch)
treea152f2e39b9786afe16c2a9230f7c4b12a59e4ee /library/cpp/regex/pcre/regexp.h
parent47a7e7b29636bfb2deb1df5f92363b3c75229c95 (diff)
downloadydb-45e70bb2432018a4704845621cd9ddd2ceab6ffb.tar.gz
Restoring authorship annotation for <lsurn@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex/pcre/regexp.h')
-rw-r--r--library/cpp/regex/pcre/regexp.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/regex/pcre/regexp.h b/library/cpp/regex/pcre/regexp.h
index bc610bd2f3..340cf9e45e 100644
--- a/library/cpp/regex/pcre/regexp.h
+++ b/library/cpp/regex/pcre/regexp.h
@@ -1,6 +1,6 @@
#pragma once
-
-#include <sys/types.h>
+
+#include <sys/types.h>
#include <util/system/defaults.h>
#include <util/generic/string.h>
@@ -11,7 +11,7 @@
//THIS CODE LOOKS LIKE A TRASH, BUT WORKS.
-#define NMATCHES 100
+#define NMATCHES 100
#define REGEXP_GLOBAL 0x0080 // use this if you want to find all occurences
class TRegExBaseImpl;
@@ -31,22 +31,22 @@ public:
bool IsCompiled() const;
int GetCompileOptions() const;
TString GetRegExpr() const;
-};
-
+};
+
class TRegExMatch: public TRegExBase {
public:
TRegExMatch(const char* regExpr = nullptr, int cflags = REG_NOSUB | REG_EXTENDED);
TRegExMatch(const TString& regExpr, int cflags = REG_NOSUB | REG_EXTENDED);
-
+
bool Match(const char* str) const;
};
-
+
struct TBackReferences {
int Beg;
int End;
int Refer;
};
-
+
class TRegExSubst: public TRegExBase {
private:
const char* Replacement;
@@ -60,4 +60,4 @@ public:
TString Replace(const char* str, int eflags = 0);
int ParseReplacement(const char* replacement);
-};
+};