re2 1.19.2 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/.github/actions/linux-alpine-node-16/Dockerfile +1 -1
  2. package/.github/actions/linux-alpine-node-18/Dockerfile +1 -1
  3. package/.github/actions/linux-alpine-node-20/Dockerfile +1 -1
  4. package/.gitmodules +5 -2
  5. package/README.md +1 -0
  6. package/binding.gyp +82 -25
  7. package/lib/replace.cc +4 -4
  8. package/package.json +1 -1
  9. package/tsconfig.json +2 -1
  10. package/vendor/re2/.bazelrc +16 -0
  11. package/vendor/re2/.github/bazel.sh +24 -0
  12. package/vendor/re2/.github/cmake.sh +12 -0
  13. package/vendor/re2/.github/workflows/ci-bazel.yml +17 -0
  14. package/vendor/re2/.github/workflows/ci-cmake.yml +108 -0
  15. package/vendor/re2/.github/workflows/ci.yml +89 -0
  16. package/vendor/re2/.github/workflows/pr.yml +26 -0
  17. package/vendor/re2/.github/workflows/python.yml +185 -0
  18. package/vendor/re2/AUTHORS +13 -0
  19. package/vendor/re2/BUILD.bazel +280 -0
  20. package/vendor/re2/CMakeLists.txt +268 -0
  21. package/vendor/re2/CONTRIBUTING.md +2 -0
  22. package/vendor/re2/CONTRIBUTORS +41 -0
  23. package/vendor/re2/Makefile +400 -0
  24. package/vendor/{README → re2/README} +5 -0
  25. package/vendor/re2/SECURITY.md +4 -0
  26. package/vendor/re2/WORKSPACE.bazel +62 -0
  27. package/vendor/re2/app/BUILD.bazel +19 -0
  28. package/vendor/re2/app/_re2.cc +94 -0
  29. package/vendor/re2/app/_re2.d.ts +23 -0
  30. package/vendor/re2/app/app.ts +111 -0
  31. package/vendor/re2/app/build.sh +50 -0
  32. package/vendor/re2/app/index.html +5 -0
  33. package/vendor/re2/app/package.json +14 -0
  34. package/vendor/re2/app/rollup.config.js +28 -0
  35. package/vendor/re2/app/tsconfig.json +17 -0
  36. package/vendor/re2/benchlog/benchplot.py +98 -0
  37. package/vendor/re2/benchlog/mktable +155 -0
  38. package/vendor/re2/doc/mksyntaxgo +42 -0
  39. package/vendor/re2/doc/mksyntaxhtml +42 -0
  40. package/vendor/re2/doc/mksyntaxwiki +36 -0
  41. package/vendor/re2/doc/syntax.html +477 -0
  42. package/vendor/re2/doc/syntax.txt +463 -0
  43. package/vendor/re2/lib/git/commit-msg.hook +104 -0
  44. package/vendor/re2/libre2.symbols +19 -0
  45. package/vendor/re2/libre2.symbols.darwin +15 -0
  46. package/vendor/re2/python/BUILD.bazel +36 -0
  47. package/vendor/re2/python/README +1 -0
  48. package/vendor/re2/python/_re2.cc +338 -0
  49. package/vendor/re2/python/re2.py +582 -0
  50. package/vendor/re2/python/re2_test.py +482 -0
  51. package/vendor/re2/python/setup.py +105 -0
  52. package/vendor/re2/{bitmap256.cc → re2/bitmap256.cc} +4 -4
  53. package/vendor/re2/{bitstate.cc → re2/bitstate.cc} +21 -25
  54. package/vendor/re2/{compile.cc → re2/compile.cc} +5 -4
  55. package/vendor/re2/{dfa.cc → re2/dfa.cc} +120 -101
  56. package/vendor/re2/{filtered_re2.cc → re2/filtered_re2.cc} +8 -11
  57. package/vendor/re2/{filtered_re2.h → re2/filtered_re2.h} +5 -4
  58. package/vendor/re2/{fuzzing → re2/fuzzing}/re2_fuzzer.cc +4 -6
  59. package/vendor/re2/{mimics_pcre.cc → re2/mimics_pcre.cc} +0 -1
  60. package/vendor/re2/{nfa.cc → re2/nfa.cc} +34 -37
  61. package/vendor/re2/{onepass.cc → re2/onepass.cc} +25 -27
  62. package/vendor/re2/{parse.cc → re2/parse.cc} +118 -121
  63. package/vendor/re2/{prefilter.cc → re2/prefilter.cc} +2 -3
  64. package/vendor/re2/{prefilter.h → re2/prefilter.h} +0 -1
  65. package/vendor/re2/{prefilter_tree.cc → re2/prefilter_tree.cc} +4 -5
  66. package/vendor/re2/{prefilter_tree.h → re2/prefilter_tree.h} +1 -2
  67. package/vendor/re2/{prog.cc → re2/prog.cc} +20 -21
  68. package/vendor/re2/{prog.h → re2/prog.h} +21 -22
  69. package/vendor/re2/{re2.cc → re2/re2.cc} +51 -62
  70. package/vendor/re2/{re2.h → re2/re2.h} +78 -40
  71. package/vendor/re2/{regexp.cc → re2/regexp.cc} +11 -12
  72. package/vendor/re2/{regexp.h → re2/regexp.h} +9 -10
  73. package/vendor/re2/{set.cc → re2/set.cc} +3 -5
  74. package/vendor/re2/{set.h → re2/set.h} +4 -3
  75. package/vendor/re2/{simplify.cc → re2/simplify.cc} +1 -2
  76. package/vendor/re2/re2/stringpiece.h +24 -0
  77. package/vendor/re2/{testing → re2/testing}/backtrack.cc +22 -25
  78. package/vendor/re2/{testing → re2/testing}/charclass_test.cc +23 -21
  79. package/vendor/re2/{testing → re2/testing}/compile_test.cc +5 -4
  80. package/vendor/re2/{testing → re2/testing}/dfa_test.cc +36 -30
  81. package/vendor/re2/{testing → re2/testing}/dump.cc +8 -8
  82. package/vendor/re2/{testing → re2/testing}/exhaustive1_test.cc +1 -1
  83. package/vendor/re2/{testing → re2/testing}/exhaustive2_test.cc +1 -1
  84. package/vendor/re2/{testing → re2/testing}/exhaustive3_test.cc +1 -1
  85. package/vendor/re2/{testing → re2/testing}/exhaustive_test.cc +1 -1
  86. package/vendor/re2/{testing → re2/testing}/exhaustive_tester.cc +36 -32
  87. package/vendor/re2/{testing → re2/testing}/exhaustive_tester.h +0 -1
  88. package/vendor/re2/{testing → re2/testing}/filtered_re2_test.cc +9 -8
  89. package/vendor/re2/{testing → re2/testing}/mimics_pcre_test.cc +3 -2
  90. package/vendor/re2/{testing → re2/testing}/null_walker.cc +1 -1
  91. package/vendor/re2/{testing → re2/testing}/parse_test.cc +13 -12
  92. package/vendor/re2/{testing → re2/testing}/possible_match_test.cc +15 -14
  93. package/vendor/re2/{testing → re2/testing}/random_test.cc +13 -12
  94. package/vendor/re2/{testing → re2/testing}/re2_arg_test.cc +25 -2
  95. package/vendor/re2/{testing → re2/testing}/re2_test.cc +49 -47
  96. package/vendor/re2/{testing → re2/testing}/regexp_benchmark.cc +144 -145
  97. package/vendor/re2/{testing → re2/testing}/regexp_generator.cc +18 -14
  98. package/vendor/re2/{testing → re2/testing}/regexp_generator.h +3 -4
  99. package/vendor/re2/{testing → re2/testing}/regexp_test.cc +1 -1
  100. package/vendor/re2/{testing → re2/testing}/required_prefix_test.cc +5 -4
  101. package/vendor/re2/{testing → re2/testing}/search_test.cc +3 -2
  102. package/vendor/re2/{testing → re2/testing}/set_test.cc +1 -1
  103. package/vendor/re2/{testing → re2/testing}/simplify_test.cc +3 -2
  104. package/vendor/re2/{testing → re2/testing}/string_generator.cc +3 -3
  105. package/vendor/re2/{testing → re2/testing}/string_generator.h +5 -6
  106. package/vendor/re2/{testing → re2/testing}/string_generator_test.cc +2 -2
  107. package/vendor/re2/{testing → re2/testing}/tester.cc +77 -78
  108. package/vendor/re2/{testing → re2/testing}/tester.h +13 -15
  109. package/vendor/re2/{tostring.cc → re2/tostring.cc} +7 -8
  110. package/vendor/re2/{unicode_casefold.h → re2/unicode_casefold.h} +0 -1
  111. package/vendor/re2/{unicode_groups.h → re2/unicode_groups.h} +0 -1
  112. package/vendor/re2/{walker-inl.h → re2/walker-inl.h} +2 -1
  113. package/vendor/re2/re2.pc.in +9 -0
  114. package/vendor/re2/re2Config.cmake.in +28 -0
  115. package/vendor/re2/runtests +33 -0
  116. package/vendor/re2/testinstall.cc +27 -0
  117. package/vendor/re2/ucs2.diff +567 -0
  118. package/vendor/{util → re2/util}/logging.h +2 -2
  119. package/vendor/{util → re2/util}/pcre.cc +47 -116
  120. package/vendor/{util → re2/util}/pcre.h +53 -63
  121. package/vendor/re2/util/strutil.cc +26 -0
  122. package/vendor/{util → re2/util}/strutil.h +0 -5
  123. package/vendor/re2/stringpiece.cc +0 -65
  124. package/vendor/re2/stringpiece.h +0 -213
  125. package/vendor/util/benchmark.cc +0 -131
  126. package/vendor/util/benchmark.h +0 -156
  127. package/vendor/util/flags.h +0 -26
  128. package/vendor/util/mix.h +0 -41
  129. package/vendor/util/mutex.h +0 -164
  130. package/vendor/util/strutil.cc +0 -149
  131. package/vendor/util/test.cc +0 -34
  132. package/vendor/util/test.h +0 -50
  133. package/vendor/util/util.h +0 -42
  134. /package/vendor/{LICENSE → re2/LICENSE} +0 -0
  135. /package/vendor/re2/{bitmap256.h → re2/bitmap256.h} +0 -0
  136. /package/vendor/re2/{fuzzing → re2/fuzzing}/compiler-rt/LICENSE +0 -0
  137. /package/vendor/re2/{fuzzing → re2/fuzzing}/compiler-rt/include/fuzzer/FuzzedDataProvider.h +0 -0
  138. /package/vendor/re2/{make_perl_groups.pl → re2/make_perl_groups.pl} +0 -0
  139. /package/vendor/re2/{make_unicode_casefold.py → re2/make_unicode_casefold.py} +0 -0
  140. /package/vendor/re2/{make_unicode_groups.py → re2/make_unicode_groups.py} +0 -0
  141. /package/vendor/re2/{perl_groups.cc → re2/perl_groups.cc} +0 -0
  142. /package/vendor/re2/{pod_array.h → re2/pod_array.h} +0 -0
  143. /package/vendor/re2/{sparse_array.h → re2/sparse_array.h} +0 -0
  144. /package/vendor/re2/{sparse_set.h → re2/sparse_set.h} +0 -0
  145. /package/vendor/re2/{unicode.py → re2/unicode.py} +0 -0
  146. /package/vendor/re2/{unicode_casefold.cc → re2/unicode_casefold.cc} +0 -0
  147. /package/vendor/re2/{unicode_groups.cc → re2/unicode_groups.cc} +0 -0
  148. /package/vendor/{util → re2/util}/fuzz.cc +0 -0
  149. /package/vendor/{util → re2/util}/malloc_counter.h +0 -0
  150. /package/vendor/{util → re2/util}/rune.cc +0 -0
  151. /package/vendor/{util → re2/util}/utf.h +0 -0
@@ -0,0 +1,185 @@
1
+ name: Python
2
+ on:
3
+ workflow_dispatch:
4
+ inputs:
5
+ build:
6
+ required: true
7
+ type: number
8
+ jobs:
9
+ bdist_wheel-linux:
10
+ name: Linux ${{ matrix.os }}, ${{ matrix.arch.name }}, Python ${{ matrix.ver }}
11
+ runs-on: ${{ matrix.arch.runs-on }}
12
+ container:
13
+ image: quay.io/pypa/${{ matrix.os }}_${{ matrix.arch.python-name }}
14
+ options: --init
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ arch:
19
+ - { name: X64, python-name: x86_64, runs-on: [ubuntu-latest] }
20
+ - { name: ARM64, python-name: aarch64, runs-on: [self-hosted, linux, arm64] }
21
+ os: [manylinux2014, manylinux_2_28]
22
+ ver: ['3.7', '3.8', '3.9', '3.10', '3.11']
23
+ env:
24
+ BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ # TODO(junyer): Use `v2` whenever a new release is tagged.
28
+ - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51
29
+ - name: Prepare Python ${{ matrix.ver }} environment
30
+ run: |
31
+ ln -sf /usr/local/bin/python${{ matrix.ver }} /usr/local/bin/python
32
+ ln -sf /usr/local/bin/python${{ matrix.ver }} /usr/local/bin/python3
33
+ python -m pip install --upgrade pip
34
+ python -m pip install --upgrade wheel auditwheel
35
+ python -m pip install --upgrade absl-py
36
+ shell: bash
37
+ - name: Build wheel
38
+ run: |
39
+ python setup.py bdist_wheel
40
+ python -m auditwheel repair --wheel-dir=. dist/*
41
+ shell: bash
42
+ working-directory: python
43
+ - name: Test wheel
44
+ run: |
45
+ python -m pip install google_re2-*.whl
46
+ python re2_test.py
47
+ shell: bash
48
+ working-directory: python
49
+ - uses: actions/upload-artifact@v3
50
+ with:
51
+ name: ${{ hashFiles('python/google_re2-*.whl') }}
52
+ path: python/google_re2-*.whl
53
+ retention-days: 1
54
+ bdist_wheel-macos:
55
+ name: macOS ${{ matrix.os }}, ${{ matrix.arch.name }}, Python ${{ matrix.ver }}
56
+ runs-on: macos-${{ matrix.os }}
57
+ strategy:
58
+ fail-fast: false
59
+ matrix:
60
+ arch:
61
+ - { name: X64, bazel-name: x86_64, python-name: x86_64 }
62
+ - { name: ARM64, bazel-name: arm64, python-name: arm64 }
63
+ os: [11, 12]
64
+ ver: ['3.7', '3.8', '3.9', '3.10', '3.11']
65
+ env:
66
+ BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67
+ BAZEL_CPU: darwin_${{ matrix.arch.bazel-name }}
68
+ # Stop macOS from reporting the system version as 10.x.
69
+ # Otherwise, Python refuses to install the built wheel!
70
+ SYSTEM_VERSION_COMPAT: 0
71
+ steps:
72
+ - uses: actions/checkout@v3
73
+ - uses: actions/setup-python@v4
74
+ with:
75
+ python-version: ${{ matrix.ver }}
76
+ - name: Prepare Python ${{ matrix.ver }} environment
77
+ run: |
78
+ python -m pip install --upgrade pip
79
+ python -m pip install --upgrade wheel delocate
80
+ python -m pip install --upgrade absl-py
81
+ shell: bash
82
+ - name: Build wheel
83
+ run: |
84
+ python setup.py bdist_wheel \
85
+ --plat-name=macosx-${{ matrix.os }}.0-${{ matrix.arch.python-name }}
86
+ python -m delocate.cmd.delocate_wheel --wheel-dir=. dist/*
87
+ shell: bash
88
+ working-directory: python
89
+ - if: matrix.arch.name == runner.arch
90
+ name: Test wheel
91
+ run: |
92
+ python -m pip install google_re2-*.whl
93
+ python re2_test.py
94
+ shell: bash
95
+ working-directory: python
96
+ - uses: actions/upload-artifact@v3
97
+ with:
98
+ name: ${{ hashFiles('python/google_re2-*.whl') }}
99
+ path: python/google_re2-*.whl
100
+ retention-days: 1
101
+ bdist_wheel-windows:
102
+ name: Windows, ${{ matrix.arch.name }}, Python ${{ matrix.ver }}
103
+ runs-on: windows-latest
104
+ strategy:
105
+ fail-fast: false
106
+ matrix:
107
+ arch:
108
+ - { name: X64, bazel-name: x64, python-name: amd64 }
109
+ # FIXME: Compiling succeeds, but linking fails with an error like
110
+ # "LINK : fatal error LNK1104: cannot open file 'python311.lib'".
111
+ # Maybe we will need GitHub-hosted runners for Windows on ARM64?!
112
+ # - { name: ARM64, bazel-name: arm64, python-name: arm64 }
113
+ ver: ['3.7', '3.8', '3.9', '3.10', '3.11']
114
+ env:
115
+ BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116
+ BAZEL_CPU: ${{ matrix.arch.bazel-name }}_windows
117
+ steps:
118
+ - uses: actions/checkout@v3
119
+ - uses: actions/setup-python@v4
120
+ with:
121
+ python-version: ${{ matrix.ver }}
122
+ - name: Prepare Python ${{ matrix.ver }} environment
123
+ run: |
124
+ python -m pip install --upgrade pip
125
+ python -m pip install --upgrade wheel
126
+ python -m pip install --upgrade absl-py
127
+ shell: bash
128
+ - name: Build wheel
129
+ run: |
130
+ python setup.py bdist_wheel \
131
+ --plat-name=win_${{ matrix.arch.python-name }}
132
+ cp dist/* .
133
+ shell: bash
134
+ working-directory: python
135
+ - if: matrix.arch.name == runner.arch
136
+ name: Test wheel
137
+ run: |
138
+ python -m pip install google_re2-*.whl
139
+ python re2_test.py
140
+ shell: bash
141
+ working-directory: python
142
+ - uses: actions/upload-artifact@v3
143
+ with:
144
+ name: ${{ hashFiles('python/google_re2-*.whl') }}
145
+ path: python/google_re2-*.whl
146
+ retention-days: 1
147
+ publish:
148
+ needs:
149
+ - bdist_wheel-linux
150
+ - bdist_wheel-macos
151
+ - bdist_wheel-windows
152
+ runs-on: ubuntu-latest
153
+ steps:
154
+ - uses: actions/checkout@v3
155
+ - uses: actions/setup-python@v4
156
+ with:
157
+ python-version: '3.x'
158
+ - name: Prepare Python 3.x environment
159
+ run: |
160
+ python -m pip install --upgrade pip
161
+ python -m pip install --upgrade wheel
162
+ shell: bash
163
+ - if: inputs.build == 1
164
+ name: Build source
165
+ run: |
166
+ python setup.py sdist
167
+ shell: bash
168
+ working-directory: python
169
+ - uses: actions/download-artifact@v3
170
+ with:
171
+ path: python
172
+ - name: Set build number to ${{ inputs.build }}
173
+ run: |
174
+ mkdir -p dist
175
+ for WHL in */google_re2-*.whl; do
176
+ python -m wheel unpack ${WHL}
177
+ python -m wheel pack --dest-dir=dist --build-number=${{ inputs.build }} google_re2-*
178
+ rm -rf google_re2-*
179
+ done
180
+ shell: bash
181
+ working-directory: python
182
+ - uses: pypa/gh-action-pypi-publish@release/v1
183
+ with:
184
+ password: ${{ secrets.PYPI_API_TOKEN }}
185
+ packages_dir: python/dist
@@ -0,0 +1,13 @@
1
+ # This is the official list of RE2 authors for copyright purposes.
2
+ # This file is distinct from the CONTRIBUTORS files.
3
+ # See the latter for an explanation.
4
+
5
+ # Names should be added to this file as
6
+ # Name or Organization <email address>
7
+ # The email address is not required for organizations.
8
+
9
+ # Please keep the list sorted.
10
+
11
+ Google Inc.
12
+ Samsung Electronics
13
+ Stefano Rivera <stefano.rivera@gmail.com>
@@ -0,0 +1,280 @@
1
+ # Copyright 2009 The RE2 Authors. All Rights Reserved.
2
+ # Use of this source code is governed by a BSD-style
3
+ # license that can be found in the LICENSE file.
4
+
5
+ # Bazel (http://bazel.io/) BUILD file for RE2.
6
+
7
+ licenses(["notice"])
8
+
9
+ exports_files(["LICENSE"])
10
+
11
+ cc_library(
12
+ name = "re2",
13
+ srcs = [
14
+ "re2/bitmap256.cc",
15
+ "re2/bitmap256.h",
16
+ "re2/bitstate.cc",
17
+ "re2/compile.cc",
18
+ "re2/dfa.cc",
19
+ "re2/filtered_re2.cc",
20
+ "re2/mimics_pcre.cc",
21
+ "re2/nfa.cc",
22
+ "re2/onepass.cc",
23
+ "re2/parse.cc",
24
+ "re2/perl_groups.cc",
25
+ "re2/pod_array.h",
26
+ "re2/prefilter.cc",
27
+ "re2/prefilter.h",
28
+ "re2/prefilter_tree.cc",
29
+ "re2/prefilter_tree.h",
30
+ "re2/prog.cc",
31
+ "re2/prog.h",
32
+ "re2/re2.cc",
33
+ "re2/regexp.cc",
34
+ "re2/regexp.h",
35
+ "re2/set.cc",
36
+ "re2/simplify.cc",
37
+ "re2/sparse_array.h",
38
+ "re2/sparse_set.h",
39
+ "re2/tostring.cc",
40
+ "re2/unicode_casefold.cc",
41
+ "re2/unicode_casefold.h",
42
+ "re2/unicode_groups.cc",
43
+ "re2/unicode_groups.h",
44
+ "re2/walker-inl.h",
45
+ "util/logging.h",
46
+ "util/rune.cc",
47
+ "util/strutil.cc",
48
+ "util/strutil.h",
49
+ "util/utf.h",
50
+ ],
51
+ hdrs = [
52
+ "re2/filtered_re2.h",
53
+ "re2/re2.h",
54
+ "re2/set.h",
55
+ "re2/stringpiece.h",
56
+ ],
57
+ copts = select({
58
+ "@platforms//os:wasi": [],
59
+ "@platforms//os:windows": [],
60
+ "//conditions:default": ["-pthread"],
61
+ }),
62
+ linkopts = select({
63
+ # macOS doesn't need `-pthread' when linking and it appears that
64
+ # older versions of Clang will warn about the unused command line
65
+ # argument, so just don't pass it.
66
+ "@platforms//os:macos": [],
67
+ "@platforms//os:wasi": [],
68
+ "@platforms//os:windows": [],
69
+ "//conditions:default": ["-pthread"],
70
+ }),
71
+ visibility = ["//visibility:public"],
72
+ deps = [
73
+ "@com_google_absl//absl/base",
74
+ "@com_google_absl//absl/base:core_headers",
75
+ "@com_google_absl//absl/container:fixed_array",
76
+ "@com_google_absl//absl/container:flat_hash_map",
77
+ "@com_google_absl//absl/container:flat_hash_set",
78
+ "@com_google_absl//absl/container:inlined_vector",
79
+ "@com_google_absl//absl/strings",
80
+ "@com_google_absl//absl/strings:str_format",
81
+ "@com_google_absl//absl/synchronization",
82
+ "@com_google_absl//absl/types:optional",
83
+ "@com_google_absl//absl/types:span",
84
+ ],
85
+ )
86
+
87
+ cc_library(
88
+ name = "testing",
89
+ testonly = 1,
90
+ srcs = [
91
+ "re2/testing/backtrack.cc",
92
+ "re2/testing/dump.cc",
93
+ "re2/testing/exhaustive_tester.cc",
94
+ "re2/testing/null_walker.cc",
95
+ "re2/testing/regexp_generator.cc",
96
+ "re2/testing/string_generator.cc",
97
+ "re2/testing/tester.cc",
98
+ "util/pcre.cc",
99
+ ],
100
+ hdrs = [
101
+ "re2/testing/exhaustive_tester.h",
102
+ "re2/testing/regexp_generator.h",
103
+ "re2/testing/string_generator.h",
104
+ "re2/testing/tester.h",
105
+ "util/malloc_counter.h",
106
+ "util/pcre.h",
107
+ ],
108
+ deps = [
109
+ ":re2",
110
+ "@com_google_absl//absl/flags:flag",
111
+ "@com_google_googletest//:gtest",
112
+ ],
113
+ )
114
+
115
+ cc_library(
116
+ name = "test",
117
+ testonly = 1,
118
+ srcs = [],
119
+ deps = [
120
+ ":testing",
121
+ "@com_google_googletest//:gtest_main",
122
+ ],
123
+ )
124
+
125
+ cc_test(
126
+ name = "charclass_test",
127
+ size = "small",
128
+ srcs = ["re2/testing/charclass_test.cc"],
129
+ deps = [":test"],
130
+ )
131
+
132
+ cc_test(
133
+ name = "compile_test",
134
+ size = "small",
135
+ srcs = ["re2/testing/compile_test.cc"],
136
+ deps = [":test"],
137
+ )
138
+
139
+ cc_test(
140
+ name = "filtered_re2_test",
141
+ size = "small",
142
+ srcs = ["re2/testing/filtered_re2_test.cc"],
143
+ deps = [":test"],
144
+ )
145
+
146
+ cc_test(
147
+ name = "mimics_pcre_test",
148
+ size = "small",
149
+ srcs = ["re2/testing/mimics_pcre_test.cc"],
150
+ deps = [":test"],
151
+ )
152
+
153
+ cc_test(
154
+ name = "parse_test",
155
+ size = "small",
156
+ srcs = ["re2/testing/parse_test.cc"],
157
+ deps = [":test"],
158
+ )
159
+
160
+ cc_test(
161
+ name = "possible_match_test",
162
+ size = "small",
163
+ srcs = ["re2/testing/possible_match_test.cc"],
164
+ deps = [":test"],
165
+ )
166
+
167
+ cc_test(
168
+ name = "re2_arg_test",
169
+ size = "small",
170
+ srcs = ["re2/testing/re2_arg_test.cc"],
171
+ deps = [":test"],
172
+ )
173
+
174
+ cc_test(
175
+ name = "re2_test",
176
+ size = "small",
177
+ srcs = ["re2/testing/re2_test.cc"],
178
+ deps = [":test"],
179
+ )
180
+
181
+ cc_test(
182
+ name = "regexp_test",
183
+ size = "small",
184
+ srcs = ["re2/testing/regexp_test.cc"],
185
+ deps = [":test"],
186
+ )
187
+
188
+ cc_test(
189
+ name = "required_prefix_test",
190
+ size = "small",
191
+ srcs = ["re2/testing/required_prefix_test.cc"],
192
+ deps = [":test"],
193
+ )
194
+
195
+ cc_test(
196
+ name = "search_test",
197
+ size = "small",
198
+ srcs = ["re2/testing/search_test.cc"],
199
+ deps = [":test"],
200
+ )
201
+
202
+ cc_test(
203
+ name = "set_test",
204
+ size = "small",
205
+ srcs = ["re2/testing/set_test.cc"],
206
+ deps = [":test"],
207
+ )
208
+
209
+ cc_test(
210
+ name = "simplify_test",
211
+ size = "small",
212
+ srcs = ["re2/testing/simplify_test.cc"],
213
+ deps = [":test"],
214
+ )
215
+
216
+ cc_test(
217
+ name = "string_generator_test",
218
+ size = "small",
219
+ srcs = ["re2/testing/string_generator_test.cc"],
220
+ deps = [":test"],
221
+ )
222
+
223
+ cc_test(
224
+ name = "dfa_test",
225
+ size = "large",
226
+ srcs = ["re2/testing/dfa_test.cc"],
227
+ deps = [":test"],
228
+ )
229
+
230
+ cc_test(
231
+ name = "exhaustive1_test",
232
+ size = "large",
233
+ srcs = ["re2/testing/exhaustive1_test.cc"],
234
+ deps = [":test"],
235
+ )
236
+
237
+ cc_test(
238
+ name = "exhaustive2_test",
239
+ size = "large",
240
+ srcs = ["re2/testing/exhaustive2_test.cc"],
241
+ deps = [":test"],
242
+ )
243
+
244
+ cc_test(
245
+ name = "exhaustive3_test",
246
+ size = "large",
247
+ srcs = ["re2/testing/exhaustive3_test.cc"],
248
+ deps = [":test"],
249
+ )
250
+
251
+ cc_test(
252
+ name = "exhaustive_test",
253
+ size = "large",
254
+ srcs = ["re2/testing/exhaustive_test.cc"],
255
+ deps = [":test"],
256
+ )
257
+
258
+ cc_test(
259
+ name = "random_test",
260
+ size = "large",
261
+ srcs = ["re2/testing/random_test.cc"],
262
+ deps = [":test"],
263
+ )
264
+
265
+ cc_library(
266
+ name = "benchmark",
267
+ testonly = 1,
268
+ srcs = [],
269
+ deps = [
270
+ ":testing",
271
+ "@com_github_google_benchmark//:benchmark_main",
272
+ ],
273
+ )
274
+
275
+ cc_binary(
276
+ name = "regexp_benchmark",
277
+ testonly = 1,
278
+ srcs = ["re2/testing/regexp_benchmark.cc"],
279
+ deps = [":benchmark"],
280
+ )