aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/regex
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/regex')
-rw-r--r--library/cpp/regex/hyperscan/ut/ya.make11
-rw-r--r--library/cpp/regex/hyperscan/ya.make17
-rw-r--r--library/cpp/regex/pcre/benchmark/ya.make12
-rw-r--r--library/cpp/regex/pcre/ut/ya.make8
-rw-r--r--library/cpp/regex/pcre/ya.make21
-rw-r--r--library/cpp/regex/pire/inline/ya.make17
-rw-r--r--library/cpp/regex/pire/ut/ya.make39
-rw-r--r--library/cpp/regex/pire/ya.make33
8 files changed, 158 insertions, 0 deletions
diff --git a/library/cpp/regex/hyperscan/ut/ya.make b/library/cpp/regex/hyperscan/ut/ya.make
new file mode 100644
index 0000000000..ea5fa1b21b
--- /dev/null
+++ b/library/cpp/regex/hyperscan/ut/ya.make
@@ -0,0 +1,11 @@
+UNITTEST()
+
+PEERDIR(
+ library/cpp/regex/hyperscan
+)
+
+SRCS(
+ hyperscan_ut.cpp
+)
+
+END()
diff --git a/library/cpp/regex/hyperscan/ya.make b/library/cpp/regex/hyperscan/ya.make
new file mode 100644
index 0000000000..72abbef9a2
--- /dev/null
+++ b/library/cpp/regex/hyperscan/ya.make
@@ -0,0 +1,17 @@
+LIBRARY()
+
+PEERDIR(
+ contrib/libs/hyperscan
+ contrib/libs/hyperscan/runtime_core2
+ contrib/libs/hyperscan/runtime_corei7
+ contrib/libs/hyperscan/runtime_avx2
+ contrib/libs/hyperscan/runtime_avx512
+)
+
+SRCS(
+ hyperscan.cpp
+)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/cpp/regex/pcre/benchmark/ya.make b/library/cpp/regex/pcre/benchmark/ya.make
new file mode 100644
index 0000000000..7f138f7012
--- /dev/null
+++ b/library/cpp/regex/pcre/benchmark/ya.make
@@ -0,0 +1,12 @@
+G_BENCHMARK()
+
+PEERDIR(
+ library/cpp/regex/pcre
+)
+
+SRCS(
+ main.cpp
+)
+
+END()
+
diff --git a/library/cpp/regex/pcre/ut/ya.make b/library/cpp/regex/pcre/ut/ya.make
new file mode 100644
index 0000000000..f3742e02b8
--- /dev/null
+++ b/library/cpp/regex/pcre/ut/ya.make
@@ -0,0 +1,8 @@
+UNITTEST_FOR(library/cpp/regex/pcre)
+
+SRCS(
+ pcre_ut.cpp
+ regexp_ut.cpp
+)
+
+END()
diff --git a/library/cpp/regex/pcre/ya.make b/library/cpp/regex/pcre/ya.make
new file mode 100644
index 0000000000..a1f5f3d4d6
--- /dev/null
+++ b/library/cpp/regex/pcre/ya.make
@@ -0,0 +1,21 @@
+LIBRARY()
+
+PEERDIR(
+ contrib/libs/pcre
+ contrib/libs/pcre/pcre16
+ contrib/libs/pcre/pcre32
+ library/cpp/containers/stack_array
+)
+
+SRCS(
+ pcre.cpp
+ regexp.cpp
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ benchmark
+ ut
+)
+
diff --git a/library/cpp/regex/pire/inline/ya.make b/library/cpp/regex/pire/inline/ya.make
new file mode 100644
index 0000000000..fb6aab0839
--- /dev/null
+++ b/library/cpp/regex/pire/inline/ya.make
@@ -0,0 +1,17 @@
+PROGRAM(pire_inline)
+
+CFLAGS(-DPIRE_NO_CONFIG)
+
+PEERDIR(
+ ADDINCL library/cpp/regex/pire
+)
+
+SRCDIR(
+ contrib/libs/pire/pire
+)
+
+SRCS(
+ inline.l
+)
+
+END()
diff --git a/library/cpp/regex/pire/ut/ya.make b/library/cpp/regex/pire/ut/ya.make
new file mode 100644
index 0000000000..0e106cf6b3
--- /dev/null
+++ b/library/cpp/regex/pire/ut/ya.make
@@ -0,0 +1,39 @@
+# this test in not linked into build tree with ReCURSE and is built by unittest/library
+
+UNITTEST()
+
+SET(PIRETESTSDIR contrib/libs/pire/ut)
+
+CFLAGS(-DPIRE_NO_CONFIG)
+
+PEERDIR(
+ library/cpp/regex/pire
+)
+
+SRCDIR(
+ ${PIRETESTSDIR}
+)
+
+ADDINCL(
+ contrib/libs/pire/pire
+ contrib/libs/pire/ut
+)
+
+SRCS(
+ pire_ut.cpp
+ capture_ut.cpp
+ count_ut.cpp
+ glyph_ut.cpp
+ easy_ut.cpp
+ read_unicode_ut.cpp
+ regexp_ut.cpp
+ approx_matching_ut.cpp
+)
+
+SIZE(MEDIUM)
+
+TIMEOUT(600)
+
+PIRE_INLINE(inline_ut.cpp)
+
+END()
diff --git a/library/cpp/regex/pire/ya.make b/library/cpp/regex/pire/ya.make
new file mode 100644
index 0000000000..b2579a73df
--- /dev/null
+++ b/library/cpp/regex/pire/ya.make
@@ -0,0 +1,33 @@
+LIBRARY()
+
+CFLAGS(-DPIRE_NO_CONFIG)
+
+SRCDIR(contrib/libs/pire/pire)
+
+SRCS(
+ pcre2pire.cpp
+ classes.cpp
+ encoding.cpp
+ fsm.cpp
+ scanner_io.cpp
+ easy.cpp
+ scanners/null.cpp
+ extra/capture.cpp
+ extra/count.cpp
+ extra/glyphs.cpp
+ re_lexer.cpp
+ re_parser.y
+ read_unicode.cpp
+ extraencodings.cpp
+ approx_matching.cpp
+ half_final_fsm.cpp
+ minimize.h
+)
+
+PEERDIR(
+ library/cpp/charset
+)
+
+END()
+
+RECURSE_FOR_TESTS(ut)