/third_party/boost/tools/bcp/ |
D | licence_info.cpp | 48 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 …]
|
D | file_types.cpp | 19 static const boost::regex e( in is_source_file() 24 boost::regex::perl | boost::regex::icase in is_source_file() 31 static const boost::regex e( in is_html_file() 47 static const boost::regex e( in is_binary_file() 54 boost::regex::perl | boost::regex::icase); in is_binary_file() 61 static const boost::regex e( in is_jam_file() 68 boost::regex::perl | boost::regex::icase in is_jam_file()
|
/third_party/selinux/libselinux/src/ |
D | regex.c | 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() 95 regex_data_free(*regex); in regex_prepare_data() [all …]
|
/third_party/boost/libs/regex/test/regress/ |
D | test_sets.cpp | 22 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 …]
|
D | test_anchors.cpp | 22 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 …]
|
D | test_tricky_cases.cpp | 137 …TEST_REGEX_SEARCH("a(((b)))c", boost::regex::extended, "abc", match_default, make_array(0, 3, 1, 2… in test_tricky_cases2() 138 …TEST_REGEX_SEARCH("a(b|(c))d", boost::regex::extended, "abd", match_default, make_array(0, 3, 1, 2… in test_tricky_cases2() 139 …TEST_REGEX_SEARCH("a(b|(c))d", boost::regex::extended, "acd", match_default, make_array(0, 3, 1, 2… in test_tricky_cases2() 140 …TEST_REGEX_SEARCH("a(b*|c)d", boost::regex::extended, "abbd", match_default, make_array(0, 4, 1, 3… in test_tricky_cases2() 142 …TEST_REGEX_SEARCH("a[ab]{20}", boost::regex::extended, "aaaaabaaaabaaaabaaaab", match_default, mak… in test_tricky_cases2() 144 …[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab]", boost::regex::extended, "aaaaab… in test_tricky_cases2() 146 …ab][ab][ab][ab][ab][ab][ab][ab][ab][ab](wee|week)(knights|night)", boost::regex::extended, "aaaaab… in test_tricky_cases2() 148 …7890123456789012345678901234567890123456789012345678901234567890", boost::regex::extended, "a12345… in test_tricky_cases2() 150 …TEST_REGEX_SEARCH("[ab][cd][ef][gh][ij][kl][mn]", boost::regex::extended, "xacegikmoq", match_defa… in test_tricky_cases2() 151 …TEST_REGEX_SEARCH("[ab][cd][ef][gh][ij][kl][mn][op]", boost::regex::extended, "xacegikmoq", match_… in test_tricky_cases2() [all …]
|
/third_party/googletest/googletest/include/gtest/ |
D | gtest-death-test.h | 169 # define ASSERT_EXIT(statement, predicate, regex) \ argument 170 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 174 # define EXPECT_EXIT(statement, predicate, regex) \ argument 175 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 180 # define ASSERT_DEATH(statement, regex) \ argument 181 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 185 # define EXPECT_DEATH(statement, regex) \ argument 186 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 260 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 261 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
/third_party/boringssl/src/third_party/googletest/include/gtest/ |
D | gtest-death-test.h | 168 # define ASSERT_EXIT(statement, predicate, regex) \ argument 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 173 # define EXPECT_EXIT(statement, predicate, regex) \ argument 174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 179 # define ASSERT_DEATH(statement, regex) \ argument 180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 184 # define EXPECT_DEATH(statement, regex) \ argument 185 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 259 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 260 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
/third_party/grpc/test/core/client_channel/ |
D | service_config_test.cc | 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 231 VerifyRegexMatch(error, regex); in TEST_F() [all …]
|
/third_party/boost/libs/regex/example/ |
D | Jamfile.v2 | 22 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/glib/glib/tests/ |
D | regex.c | 69 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() 120 GRegex *regex; in test_new_fail() local 123 regex = g_regex_new (data->pattern, data->compile_opts, data->match_opts, &error); in test_new_fail() 125 g_assert (regex == NULL); in test_new_fail() [all …]
|
/third_party/node/deps/npm/node_modules/is-regex/ |
D | test.js | 21 var regex = /a/g; 23 toString: function () { return String(regex); }, 24 valueOf: function () { return regex; } 39 var regex = /a/; 41 regex.lastIndex = marker; 42 st.equal(regex.lastIndex, marker, 'lastIndex is the marker object'); 43 st.ok(isRegex(regex), 'is regex'); 44 st.equal(regex.lastIndex, marker, 'lastIndex is the marker object after isRegex'); 49 var regex = /a/; 50 regex.lastIndex = 3; [all …]
|
D | README.md | 1 #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/skia/third_party/externals/tint/tools/src/match/ |
D | match.go | 66 regex := "^" + escaped + "$" 67 regex = strings.ReplaceAll(regex, starstar, ".*") 68 regex = strings.ReplaceAll(regex, star, "[^/]*") 69 regex = strings.ReplaceAll(regex, questionmark, "[^/]") 71 re, err := regexp.Compile(regex) 73 return nil, fmt.Errorf(`Failed to compile regex "%v" for pattern "%v": %w`, regex, pattern, err)
|
/third_party/boost/libs/xpressive/doc/ |
D | grammars.qbk | 13 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 … 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 48 // wrap the regex in begin-word / end-word assertions [all …]
|
/third_party/node/deps/npm/node_modules/cidr-regex/ |
D | README.md | 1 # cidr-regex 2 …regex.svg?style=flat)](https://www.npmjs.org/package/cidr-regex) [![](https://img.shields.io/npm/d… 9 $ npm install --save cidr-regex 15 const cidrRegex = require('cidr-regex'); 36 Returns a regex for matching both IPv4 and IPv6 CIDR IP addresses. 40 Returns a regex for matching IPv4 CIDR IP addresses. 44 Returns a regex for matching IPv6 CIDR IP addresses. 58 - [ip-regex](https://github.com/sindresorhus/ip-regex) - Regular expression for matching IP address…
|
/third_party/googletest/googletest/src/ |
D | gtest-port.cc | 651 void RE::Init(const char* regex) { in Init() argument 652 pattern_ = posix::StrDup(regex); in Init() 656 const size_t full_regex_len = strlen(regex) + 10; in Init() 659 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 670 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 674 << "Regular expression \"" << regex in Init() 731 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 733 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 738 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 739 if (regex == NULL) { in ValidateRegex() [all …]
|
/third_party/glib/glib/ |
D | gregex.h | 452 GRegex *g_regex_ref (GRegex *regex); 454 void g_regex_unref (GRegex *regex); 456 const gchar *g_regex_get_pattern (const GRegex *regex); 458 gint g_regex_get_max_backref (const GRegex *regex); 460 gint g_regex_get_capture_count (const GRegex *regex); 462 gboolean g_regex_get_has_cr_or_lf (const GRegex *regex); 464 gint g_regex_get_max_lookbehind (const GRegex *regex); 466 gint g_regex_get_string_number (const GRegex *regex, 476 GRegexCompileFlags g_regex_get_compile_flags (const GRegex *regex); 478 GRegexMatchFlags g_regex_get_match_flags (const GRegex *regex); [all …]
|
D | gregex.c | 166 GRegex *regex; /* the regex */ member 842 match_info_new (const GRegex *regex, in match_info_new() argument 858 match_info->regex = g_regex_ref ((GRegex *)regex); in match_info_new() 876 pcre2_pattern_info (regex->pcre_re, PCRE2_INFO_CAPTURECOUNT, in match_info_new() 887 match_info->regex->pcre_re, in match_info_new() 909 return match_info->regex; in g_match_info_get_regex() 963 g_regex_unref (match_info->regex); in g_match_info_unref() 1031 opts = map_to_pcre2_match_flags (match_info->regex->match_opts | match_info->match_opts); in g_match_info_next() 1032 match_info->matches = pcre2_match (match_info->regex->pcre_re, in g_match_info_next() 1044 match_info->regex->pattern, match_error (match_info->matches)); in g_match_info_next() [all …]
|
/third_party/uboot/u-boot-2020.01/env/ |
D | attr.c | 115 char *regex; member 124 char regex[strlen(name) + 3]; in regex_callback() local 127 sprintf(regex, "^%s$", name); in regex_callback() 128 if (slre_compile(&slre, regex)) { in regex_callback() 133 free(cbp->regex); in regex_callback() 138 cbp->regex = malloc(strlen(regex) + 1); in regex_callback() 139 if (cbp->regex) { in regex_callback() 140 strcpy(cbp->regex, regex); in regex_callback() 152 free(cbp->regex); in regex_callback() 153 cbp->regex = NULL; in regex_callback() [all …]
|
/third_party/boringssl/src/third_party/googletest/src/ |
D | gtest-port.cc | 736 void RE::Init(const char* regex) { in Init() argument 737 pattern_ = posix::StrDup(regex); in Init() 741 const size_t full_regex_len = strlen(regex) + 10; in Init() 744 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 755 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 759 << "Regular expression \"" << regex in Init() 816 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 818 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 823 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 824 if (regex == nullptr) { in ValidateRegex() [all …]
|
/third_party/boost/libs/range/doc/reference/adaptors/ |
D | tokenized.qbk | 14 rng | boost::adaptors::tokenized(regex) 15 rng | boost::adaptors::tokenized(regex, i) 16 rng | boost::adaptors::tokenized(regex, rndRng) 17 rng | boost::adaptors::tokenized(regex, i, flags) 18 rng | boost::adaptors::tokenized(regex, rndRng, flags) 26 boost::adaptors::tokenize(rng, regex) 27 boost::adaptors::tokenize(rng, regex, i) 28 boost::adaptors::tokenize(rng, regex, rndRng) 29 boost::adaptors::tokenize(rng, regex, i, flags) 30 boost::adaptors::tokenize(rng, regex, rndRng, flags) [all …]
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/ |
D | RegexCache.java | 21 import java.util.regex.Pattern; 35 public Pattern getPatternForRegex(String regex) { in getPatternForRegex() argument 36 Pattern pattern = cache.get(regex); in getPatternForRegex() 38 pattern = Pattern.compile(regex); in getPatternForRegex() 39 cache.put(regex, pattern); in getPatternForRegex() 45 boolean containsRegex(String regex) { in containsRegex() argument 46 return cache.containsKey(regex); in containsRegex()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | UnicodeRegex.java | 27 import java.util.regex.Pattern; 88 public String transform(String regex) { in transform() argument 98 for (int i = 0; i < regex.length(); ++i) { in transform() 100 char ch = regex.charAt(i); in transform() 104 if (UnicodeSet.resemblesPattern(regex, i)) { in transform() 106 i = processSet(regex, i, result, temp, pos); in transform() 112 if (UnicodeSet.resemblesPattern(regex, i)) { in transform() 113 i = processSet(regex, i, result, temp, pos); in transform() 151 public static String fix(String regex) { 152 return STANDARD.transform(regex); [all …]
|
/third_party/node/deps/npm/node_modules/ip-regex/ |
D | readme.md | 1 # ip-regex [![Build Status](https://travis-ci.org/sindresorhus/ip-regex.svg?branch=master)](https:/… 9 $ npm install --save ip-regex 16 const ipRegex = require('ip-regex'); 38 Returns a regex for matching both IPv4 and IPv6. 42 Returns a regex for matching IPv4. 46 Returns a regex for matching IPv6.
|