Home
last modified time | relevance | path

Searched full:regex (Results 1 – 25 of 2447) sorted by relevance

12345678910>>...98

/third_party/selinux/libselinux/src/
Dregex.c7 #include "regex.h"
62 pcre2_code *regex; /* compiled regular expression */ member
71 int regex_prepare_data(struct regex_data **regex, char const *pattern_string, in regex_prepare_data() argument
76 *regex = regex_data_create(); in regex_prepare_data()
77 if (!(*regex)) in regex_prepare_data()
80 (*regex)->regex = pcre2_compile( in regex_prepare_data()
83 if (!(*regex)->regex) { in regex_prepare_data()
87 (*regex)->match_data = in regex_prepare_data()
88 pcre2_match_data_create_from_pattern((*regex)->regex, NULL); in regex_prepare_data()
89 if (!(*regex)->match_data) { in regex_prepare_data()
[all …]
/third_party/boost/libs/xpressive/doc/
Dgrammars.qbk13 code and data from within the regex. This enables programming idioms that are not possible with oth…
14 expression libraries. Of particular note is the ability for one regex to refer to another regex, al…
15 to build grammars out of regular expressions. This section describes how to embed one regex in anot…
16 and by reference, how regex objects behave when they refer to other regexes, and how to access the …
19 [h2 Embedding a Regex by Value]
21 The _basic_regex_ object has value semantics. When a regex object appears on the right-hand side in…
22 of another regex, it is as if the regex were embedded by value; that is, a copy of the nested regex
23 the enclosing regex. The inner regex is invoked by the outer regex during pattern matching. The inn…
26 Consider a text editor that has a regex-find feature with a whole-word option. You can implement th…
39 // wrap the regex in begin-word / end-word assertions
[all …]
/third_party/node/deps/npm/node_modules/is-regex/
Dtest.js8 t.notOk(isRegex(), 'undefined is not regex');
9 t.notOk(isRegex(null), 'null is not regex');
10 t.notOk(isRegex(false), 'false is not regex');
11 t.notOk(isRegex(true), 'true is not regex');
12 t.notOk(isRegex(42), 'number is not regex');
13 t.notOk(isRegex('foo'), 'string is not regex');
14 t.notOk(isRegex([]), 'array is not regex');
15 t.notOk(isRegex({}), 'object is not regex');
16 t.notOk(isRegex(function () {}), 'function is not regex');
21 var regex = /a/g;
[all …]
DREADME.md1 #is-regex <sup>[![Version Badge][2]][1]</sup>
13 Is this value a JS regex?
19 var isRegex = require('is-regex');
39 [1]: https://npmjs.org/package/is-regex
40 [2]: http://versionbadg.es/ljharb/is-regex.svg
41 [3]: https://travis-ci.org/ljharb/is-regex.svg
42 [4]: https://travis-ci.org/ljharb/is-regex
43 [5]: https://david-dm.org/ljharb/is-regex.svg
44 [6]: https://david-dm.org/ljharb/is-regex
45 [7]: https://david-dm.org/ljharb/is-regex/dev-status.svg
[all …]
/third_party/boost/boost/regex/v4/
Dregex.hpp14 * FILE regex.cpp
18 * entry point for the template regex code.
29 #include <boost/regex/config.hpp>
32 #include <boost/regex/v4/regex_workaround.hpp>
39 #include <boost/regex/regex_traits.hpp>
42 #include <boost/regex/v4/error_type.hpp>
45 #include <boost/regex/v4/match_flags.hpp>
48 #include <boost/regex/v4/regex_raw_buffer.hpp>
51 #include <boost/regex/pattern_except.hpp>
55 #include <boost/regex/v4/char_regex_traits.hpp>
[all …]
/third_party/boost/libs/regex/example/
DJamfile.v222 rule regex-test-run ( sources + : input * : name * )
40 test-suite regex-examples :
42 [ regex-test-run timer/regex_timer.cpp : $(BOOST_ROOT)/libs/regex/example/timer/input_script.txt ]
43 [ regex-test-run grep/grep.cpp ../../program_options/build//boost_program_options/<link>static : -n…
44 [ regex-test-run snippets/credit_card_example.cpp ]
45 [ regex-test-run snippets/mfc_example.cpp ]
46 [ regex-test-run snippets/icu_example.cpp ]
47 [ regex-test-run snippets/partial_regex_grep.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
48 [ regex-test-run snippets/partial_regex_iterate.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
49 [ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ]
[all …]
/third_party/boost/libs/regex/test/
Dtest_consolidated.cpp13 #include <libs/regex/src/c_regex_traits.cpp>
14 #include <libs/regex/src/cpp_regex_traits.cpp>
15 #include <libs/regex/src/cregex.cpp>
16 #include <libs/regex/src/fileiter.cpp>
17 #include <libs/regex/src/icu.cpp>
18 #include <libs/regex/src/instances.cpp>
19 #include <libs/regex/src/posix_api.cpp>
20 #include <libs/regex/src/regex.cpp>
21 #include <libs/regex/src/regex_debug.cpp>
22 #include <libs/regex/src/regex_raw_buffer.cpp>
[all …]
/third_party/boost/tools/bcp/
Dlicence_info.cpp48 license_info( boost::regex("distributed\\W+under" in get_licenses()
49 …:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0", boost::regex::perl | boost::regex::icase) in get_licenses()
51 boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) in get_licenses()
63 …license_info( boost::regex("Use\\W+\\modification\\W+and\\W+distribution(\\W+is|\\W+are)\\W+subjec… in get_licenses()
64 …:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0", boost::regex::perl | boost::regex::icase) in get_licenses()
66 boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) in get_licenses()
78 license_info( boost::regex("(?!is)\\w\\w\\W+subject\\W+to" in get_licenses()
79 …:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0", boost::regex::perl | boost::regex::icase) in get_licenses()
81 boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) in get_licenses()
93 …oost::regex("Copyright\\W+(c)\\W+2001\\W+2002\\W+Python\\W+Software\\W+Foundation\\W+All\\W+Rights… in get_licenses()
[all …]
/third_party/boost/libs/regex/test/regress/
Dtest_anchors.cpp22 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "ab", match_default, make_array(0, 2, -2, -2)); in test_anchors()
23 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xxabxx", match_default, make_array(-2, -2)); in test_anchors()
24 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xx\nabzz", match_default, make_array(3, 5, -2, -… in test_anchors()
25 TEST_REGEX_SEARCH("ab$", boost::regex::extended, "ab", match_default, make_array(0, 2, -2, -2)); in test_anchors()
26 TEST_REGEX_SEARCH("ab$", boost::regex::extended, "abxx", match_default, make_array(-2, -2)); in test_anchors()
27 …TEST_REGEX_SEARCH("ab$", boost::regex::extended, "ab\nzz", match_default, make_array(0, 2, -2, -2)… in test_anchors()
28 TEST_REGEX_SEARCH("^ab", boost::regex::extended, "\n\n a", match_default, make_array(-2, -2)); in test_anchors()
37 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "ab", match_default | match_not_bol | match_not_e… in test_anchors()
38 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xxabxx", match_default | match_not_bol | match_n… in test_anchors()
39 …TEST_REGEX_SEARCH("^ab", boost::regex::extended, "xx\nabzz", match_default | match_not_bol | match… in test_anchors()
[all …]
Dtest_sets.cpp22 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "a", match_default, make_array(0, 1, -2, -2)); in test_sets()
23 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "b", match_default, make_array(0, 1, -2, -2)); in test_sets()
24 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "c", match_default, make_array(0, 1, -2, -2)); in test_sets()
25 TEST_REGEX_SEARCH("[abc]", boost::regex::extended, "d", match_default, make_array(-2, -2)); in test_sets()
26 … TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "a", match_default, make_array(0, 1, -2, -2)); in test_sets()
27 TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "b", match_default, make_array(-2, -2)); in test_sets()
28 TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "d", match_default, make_array(-2, -2)); in test_sets()
29 … TEST_REGEX_SEARCH("[^bcd]", boost::regex::extended, "e", match_default, make_array(0, 1, -2, -2)); in test_sets()
30 …TEST_REGEX_SEARCH("a[b]c", boost::regex::extended, "abc", match_default, make_array(0, 3, -2, -2)); in test_sets()
31 …TEST_REGEX_SEARCH("a[ab]c", boost::regex::extended, "abc", match_default, make_array(0, 3, -2, -2)… in test_sets()
[all …]
/third_party/node/deps/npm/node_modules/ip-regex/
Dpackage.json2 "_from": "ip-regex@^2.1.0",
3 "_id": "ip-regex@2.1.0",
6 "_location": "/ip-regex",
11 "raw": "ip-regex@^2.1.0",
12 "name": "ip-regex",
13 "escapedName": "ip-regex",
19 "/cidr-regex"
21 "_resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz",
23 "_spec": "ip-regex@^2.1.0",
24 "_where": "/Users/rebecca/code/npm/node_modules/cidr-regex",
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DRegex.h1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===//
28 class Regex {
46 Regex();
47 /// Compiles the given regular expression \p Regex.
48 Regex(StringRef Regex, unsigned Flags = NoFlags);
49 Regex(const Regex &) = delete;
50 Regex &operator=(Regex regex) {
51 std::swap(preg, regex.preg);
52 std::swap(error, regex.error);
55 Regex(Regex &&regex);
[all …]
/third_party/glib/glib/tests/
Dregex.c69 GRegex *regex; in test_new() local
72 regex = g_regex_new (data->pattern, data->compile_opts, data->match_opts, &error); in test_new()
73 g_assert (regex != NULL); in test_new()
75 g_assert_cmpstr (data->pattern, ==, g_regex_get_pattern (regex)); in test_new()
79 g_assert_cmphex (g_regex_get_compile_flags (regex), ==, data->real_compile_opts); in test_new()
80 g_assert_cmphex (g_regex_get_match_flags (regex), ==, data->real_match_opts); in test_new()
83 g_regex_unref (regex); in test_new()
95 path = g_strdup_printf ("/regex/new/%d", ++total); \
111 path = g_strdup_printf ("/regex/new-check-flags/%d", ++total); \
120 GRegex *regex; in test_new_fail() local
[all …]
/third_party/grpc/test/core/client_channel/
Dservice_config_test.cc19 #include <regex>
133 void VerifyRegexMatch(grpc_error* error, const std::regex& regex) { in VerifyRegexMatch() argument
136 EXPECT_TRUE(std::regex_search(error_str, match, regex)) << error_str; in VerifyRegexMatch()
158 std::regex regex(std::string("JSON parse error")); in TEST_F() local
159 VerifyRegexMatch(error, regex); in TEST_F()
194 std::regex regex( in TEST_F() local
199 VerifyRegexMatch(error, regex); in TEST_F()
210 std::regex regex( in TEST_F() local
215 VerifyRegexMatch(error, regex); in TEST_F()
226 std::regex regex( in TEST_F() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DRegex.h1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===//
27 class Regex {
45 Regex();
46 /// Compiles the given regular expression \p Regex.
48 /// \param Regex - referenced string is no longer needed after this
50 Regex(StringRef Regex, unsigned Flags = NoFlags);
51 Regex(const Regex &) = delete;
52 Regex &operator=(Regex regex) {
53 std::swap(preg, regex.preg);
54 std::swap(error, regex.error);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRegex.cpp1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
13 #include "llvm/Support/Regex.h"
21 // xlocale.h, this will cause trouble, because of missing regex-related types.
26 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
28 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() argument
31 preg->re_endp = regex.end(); in Regex()
38 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
41 Regex::Regex(Regex &&regex) { in Regex() argument
42 preg = regex.preg; in Regex()
43 error = regex.error; in Regex()
[all …]
/third_party/node/deps/npm/node_modules/cidr-regex/
Dpackage.json2 "_from": "cidr-regex@^2.0.10",
3 "_id": "cidr-regex@2.0.10",
6 "_location": "/cidr-regex",
11 "raw": "cidr-regex@^2.0.10",
12 "name": "cidr-regex",
13 "escapedName": "cidr-regex",
21 "_resolved": "https://registry.npmjs.org/cidr-regex/-/cidr-regex-2.0.10.tgz",
23 "_spec": "cidr-regex@^2.0.10",
30 "url": "https://github.com/silverwind/cidr-regex/issues"
41 "ip-regex": "^2.1.0"
[all …]
/third_party/skia/third_party/externals/tint/tools/src/match/
Dmatch.go37 // Transform pattern into a regex by replacing the uses of `?`, `*`, `**`
38 // with corresponding regex patterns.
39 // As the pattern may contain other regex sequences, the string has to be
42 // b) Escape the expression so that other sequences don't confuse the regex
44 // c) Replace the placeholder tokens with the corresponding regex tokens.
63 // Escape any remaining regex characters
65 // Insert regex matchers for the substituted tokens
66 regex := "^" + escaped + "$"
67 regex = strings.ReplaceAll(regex, starstar, ".*")
68 regex = strings.ReplaceAll(regex, star, "[^/]*")
[all …]
/third_party/node/deps/npm/node_modules/shebang-regex/
Dpackage.json2 "_from": "shebang-regex@^1.0.0",
3 "_id": "shebang-regex@1.0.0",
6 "_location": "/shebang-regex",
11 "raw": "shebang-regex@^1.0.0",
12 "name": "shebang-regex",
13 "escapedName": "shebang-regex",
21 "_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
23 "_spec": "shebang-regex@^1.0.0",
31 "url": "https://github.com/sindresorhus/shebang-regex/issues"
45 "homepage": "https://github.com/sindresorhus/shebang-regex#readme",
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DRegex.cpp1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
14 #include "llvm/Support/Regex.h"
22 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
24 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() argument
27 preg->re_endp = regex.end(); in Regex()
34 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
37 Regex::Regex(Regex &&regex) { in Regex() argument
38 preg = regex.preg; in Regex()
39 error = regex.error; in Regex()
40 regex.preg = nullptr; in Regex()
[all …]
/third_party/boost/libs/regex/src/
Dcregex.cpp22 #include <boost/regex.hpp>
27 #include <boost/regex/v4/fileiter.hpp>
86 regex e;
149 RegEx::RegEx() in RegEx() function in boost::RegEx
154 RegEx::RegEx(const RegEx& o) in RegEx() function in boost::RegEx
159 RegEx::~RegEx() in ~RegEx()
164 RegEx::RegEx(const char* c, bool icase) in RegEx() function in boost::RegEx
170 RegEx::RegEx(const std::string& s, bool icase) in RegEx() function in boost::RegEx
176 RegEx& RegEx::operator=(const RegEx& o) in operator =()
182 RegEx& RegEx::operator=(const char* p) in operator =()
[all …]
/third_party/boost/libs/iostreams/test/
Dregex_filter_test.cpp11 #include <boost/iostreams/filter/regex.hpp>
33 // Note: Given the basic stream and filter tests, two regex tests in regex_filter_test()
40 boost::regex match_lower("[a-z]+"); in regex_filter_test()
47 // Test reading from a regex filter based on a function in chars. in regex_filter_test()
60 // Test reading from a regex filter based on a function in chunks. in regex_filter_test()
61 // (Also tests reusing the regex filter.) in regex_filter_test()
76 // Test reading from a regex filter based on a format string in chars. in regex_filter_test()
89 // Test reading from a regex filter based on a format string in chunks. in regex_filter_test()
90 // (Also tests reusing the regex filter.) in regex_filter_test()
105 // Test writing to a regex filter based on a function in chars. in regex_filter_test()
[all …]
/third_party/node/deps/npm/node_modules/cliui/node_modules/ansi-regex/
Dpackage.json2 "_from": "ansi-regex@4.1.1",
3 "_id": "ansi-regex@4.1.1",
6 "_location": "/cliui/ansi-regex",
11 "raw": "ansi-regex@4.1.1",
12 "name": "ansi-regex",
13 "escapedName": "ansi-regex",
21 "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz",
23 "_spec": "ansi-regex@4.1.1",
31 "url": "https://github.com/chalk/ansi-regex/issues"
46 "homepage": "https://github.com/chalk/ansi-regex#readme",
[all …]
/third_party/node/deps/npm/node_modules/wrap-ansi/node_modules/ansi-regex/
Dpackage.json2 "_from": "ansi-regex@4.1.1",
3 "_id": "ansi-regex@4.1.1",
6 "_location": "/wrap-ansi/ansi-regex",
11 "raw": "ansi-regex@4.1.1",
12 "name": "ansi-regex",
13 "escapedName": "ansi-regex",
21 "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz",
23 "_spec": "ansi-regex@4.1.1",
31 "url": "https://github.com/chalk/ansi-regex/issues"
46 "homepage": "https://github.com/chalk/ansi-regex#readme",
[all …]
/third_party/node/deps/npm/node_modules/string-width/node_modules/ansi-regex/
Dpackage.json2 "_from": "ansi-regex@^3.0.0",
3 "_id": "ansi-regex@3.0.0",
6 "_location": "/string-width/ansi-regex",
11 "raw": "ansi-regex@^3.0.0",
12 "name": "ansi-regex",
13 "escapedName": "ansi-regex",
21 "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
23 "_spec": "ansi-regex@^3.0.0",
31 "url": "https://github.com/chalk/ansi-regex/issues"
46 "homepage": "https://github.com/chalk/ansi-regex#readme",
[all …]

12345678910>>...98