Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 5719) sorted by relevance

12345678910>>...229

/external/pdfium/testing/resources/
Dmany_rectangles.in26 1.000000 1.000000 8.000000 8.000000 re B*
28 11.000000 1.000000 8.000000 8.000000 re B*
30 21.000000 1.000000 8.000000 8.000000 re B*
32 31.000000 1.000000 8.000000 8.000000 re B*
34 41.000000 1.000000 8.000000 8.000000 re B*
36 51.000000 1.000000 8.000000 8.000000 re B*
38 61.000000 1.000000 8.000000 8.000000 re B*
40 71.000000 1.000000 8.000000 8.000000 re B*
42 81.000000 1.000000 8.000000 8.000000 re B*
44 91.000000 1.000000 8.000000 8.000000 re B*
[all …]
/external/python/cpython2/Lib/test/
Dtest_re.py8 import re
9 from re import Scanner
29 x = re.compile('ab+c')
34 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0))
35 self.assertEqual(re.search('x*', 'axx').span(), (0, 0))
36 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3))
37 self.assertEqual(re.search('x+', 'axx').span(), (1, 3))
38 self.assertIsNone(re.search('x', 'aaa'))
39 self.assertEqual(re.match('a*', 'xxx').span(0), (0, 0))
40 self.assertEqual(re.match('a*', 'xxx').span(), (0, 0))
[all …]
/external/python/cpython3/Lib/test/
Dtest_re.py5 import re
10 from re import Scanner
40 with self.assertRaises(re.error) as cm:
41 re.compile(pattern)
49 with self.assertRaises(re.error) as cm:
50 re.sub(pattern, repl, string)
60 it = re.finditer(b'a', b)
70 x = re.compile('ab+c')
75 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0))
76 self.assertEqual(re.search('x*', 'axx').span(), (0, 0))
[all …]
/external/icu/icu4c/source/test/cintltst/
Dreapits.c63 re = uregex_openC(pattern, flags, NULL, &status); \
68 uregex_setText(re, srcString, -1, &status); \
76 uregex_close(re); \
215 URegularExpression *re; in TestRegexCAPI() local
223 re = uregex_open(pat, -1, 0, 0, &status); in TestRegexCAPI()
228 uregex_close(re); in TestRegexCAPI()
232 re = uregex_open(pat, -1, in TestRegexCAPI()
236 uregex_close(re); in TestRegexCAPI()
240 re = uregex_open(pat, -1, 0x40000000, 0, &status); in TestRegexCAPI()
242 uregex_close(re); in TestRegexCAPI()
[all …]
/external/cronet/third_party/icu/source/test/cintltst/
Dreapits.c63 re = uregex_openC(pattern, flags, NULL, &status); \
68 uregex_setText(re, srcString, -1, &status); \
76 uregex_close(re); \
215 URegularExpression *re; in TestRegexCAPI() local
223 re = uregex_open(pat, -1, 0, 0, &status); in TestRegexCAPI()
228 uregex_close(re); in TestRegexCAPI()
232 re = uregex_open(pat, -1, in TestRegexCAPI()
236 uregex_close(re); in TestRegexCAPI()
240 re = uregex_open(pat, -1, 0x40000000, 0, &status); in TestRegexCAPI()
242 uregex_close(re); in TestRegexCAPI()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/re/re.regex/re.regex.construct/
Ddeduct.pass.cpp38 std::basic_regex re(s1.begin(), s1.end()); in main() local
40 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, ""); in main()
41 assert(re.flags() == std::regex_constants::ECMAScript); in main()
42 assert(re.mark_count() == 0); in main()
48 std::basic_regex re(s1.begin(), s1.end(), std::regex_constants::basic); in main() local
50 static_assert(std::is_same_v<decltype(re), std::basic_regex<wchar_t>>, ""); in main()
51 assert(re.flags() == std::regex_constants::basic); in main()
52 assert(re.mark_count() == 1); in main()
59 std::basic_regex re("(a([bc]))"s); in main() local
60 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, ""); in main()
[all …]
/external/libcxx/test/std/re/re.regex/re.regex.construct/
Ddeduct.pass.cpp42 std::basic_regex re(s1.begin(), s1.end()); in main() local
44 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, ""); in main()
45 assert(re.flags() == std::regex_constants::ECMAScript); in main()
46 assert(re.mark_count() == 0); in main()
51 std::basic_regex re(s1.begin(), s1.end(), std::regex_constants::basic); in main() local
53 static_assert(std::is_same_v<decltype(re), std::basic_regex<wchar_t>>, ""); in main()
54 assert(re.flags() == std::regex_constants::basic); in main()
55 assert(re.mark_count() == 1); in main()
61 std::basic_regex re("(a([bc]))"s); in main() local
62 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, ""); in main()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dsimplify.cc25 Regexp* re = Parse(src, flags, status); in SimplifyRegexp() local
26 if (re == NULL) in SimplifyRegexp()
28 Regexp* sre = re->Simplify(); in SimplifyRegexp()
29 re->Decref(); in SimplifyRegexp()
111 virtual Regexp* PostVisit(Regexp* re, Regexp* parent_arg, Regexp* pre_arg,
113 virtual Regexp* Copy(Regexp* re);
114 virtual Regexp* ShortVisit(Regexp* re, Regexp* parent_arg);
141 virtual Regexp* PreVisit(Regexp* re, Regexp* parent_arg, bool* stop);
142 virtual Regexp* PostVisit(Regexp* re, Regexp* parent_arg, Regexp* pre_arg,
144 virtual Regexp* Copy(Regexp* re);
[all …]
Dparse.cc87 bool PushRegexp(Regexp* re);
208 for (Regexp* re = stacktop_; re != NULL; re = next) { in ~ParseState() local
209 next = re->down_; in ~ParseState()
210 re->down_ = NULL; in ~ParseState()
211 if (re->op() == kLeftParen) in ~ParseState()
212 delete re->name_; in ~ParseState()
213 re->Decref(); in ~ParseState()
220 Regexp* Regexp::ParseState::FinishRegexp(Regexp* re) { in FinishRegexp() argument
221 if (re == NULL) in FinishRegexp()
223 re->down_ = NULL; in FinishRegexp()
[all …]
Dwalker-inl.h39 virtual T PreVisit(Regexp* re, T parent_arg, bool* stop);
50 virtual T PostVisit(Regexp* re, T parent_arg, T pre_arg,
65 virtual T ShortVisit(Regexp* re, T parent_arg) = 0;
70 T Walk(Regexp* re, T top_arg);
80 T WalkExponential(Regexp* re, T top_arg, int max_visits);
96 T WalkInternal(Regexp* re, T top_arg, bool use_copy);
102 template<typename T> T Regexp::Walker<T>::PreVisit(Regexp* re, in PreVisit() argument
108 template<typename T> T Regexp::Walker<T>::PostVisit(Regexp* re, in PostVisit() argument
122 WalkState<T>(Regexp* re, T parent) in WalkState()
123 : re(re), in WalkState()
[all …]
/external/cronet/build/android/pylib/utils/
Ddevice_dependencies.py6 import re
12 re.compile(r'.*METADATA'),
13 re.compile(r'.*OWNERS'),
14 re.compile(r'.*\.md'),
15 re.compile(r'.*\.crx'), # Chrome extension zip files.
16 re.compile(r'.*/\.git.*'), # Any '.git*' directories/files.
17 re.compile(r'.*\.so'), # Libraries packed into .apk.
18 re.compile(r'.*Mojo.*manifest\.json'), # Some source_set()s pull these in.
19 re.compile(r'.*\.py'), # Some test_support targets include python deps.
20 re.compile(r'.*\.apk'), # Should be installed separately.
[all …]
/external/angle/build/android/pylib/utils/
Ddevice_dependencies.py6 import re
12 re.compile(r'.*METADATA'),
13 re.compile(r'.*OWNERS'),
14 re.compile(r'.*\.md'),
15 re.compile(r'.*\.crx'), # Chrome extension zip files.
16 re.compile(r'.*/\.git.*'), # Any '.git*' directories/files.
17 re.compile(r'.*\.so'), # Libraries packed into .apk.
18 re.compile(r'.*Mojo.*manifest\.json'), # Some source_set()s pull these in.
19 re.compile(r'.*\.py'), # Some test_support targets include python deps.
20 re.compile(r'.*\.apk'), # Should be installed separately.
[all …]
/external/smali/smalidea/src/main/antlr/
DsmalideaParser.g92 public void recover(IntStream input, RecognitionException re) {
113 // we want to return the token we're actually matching
204 catch [RecognitionException re] {
205 recover(input, re);
206 reportError(marker, re, false);
213 catch [RecognitionException re] {
214 recover(input, re);
215 reportError(marker, re, false);
222 catch [RecognitionException re] {
223 recover(input, re);
[all …]
/external/libchrome/libchrome_tools/uprev/
Dfilters.py7 import re
12 re.compile(rb'base/((?!(allocator|third_party)/).*$)'),
13 re.compile(
16 re.compile(rb'base/third_party/(dynamic_annotation|icu|nspr|valgrind)'),
17 re.compile(rb'build/(android/(gyp/util|pylib/([^/]*$|constants))|[^/]*\.(h|py)$)'),
18 re.compile(rb'mojo/'),
19 re.compile(rb'dbus/'),
20 re.compile(rb'ipc/.*(\.cc|\.h|\.mojom)$'),
21 re.compile(rb'ui/gfx/(gfx_export.h|geometry|range)'),
22 re.compile(rb'testing/[^/]*\.(cc|h)$'),
[all …]
/external/pcre/src/
Dpcre2_pattern_info.c67 const pcre2_real_code *re = (pcre2_real_code *)code; in pcre2_pattern_info() local
110 if (re == NULL) return PCRE2_ERROR_NULL; in pcre2_pattern_info()
115 if (re->magic_number != MAGIC_NUMBER) return PCRE2_ERROR_BADMAGIC; in pcre2_pattern_info()
119 if ((re->flags & (PCRE2_CODE_UNIT_WIDTH/8)) == 0) return PCRE2_ERROR_BADMODE; in pcre2_pattern_info()
124 *((uint32_t *)where) = re->overall_options; in pcre2_pattern_info()
128 *((uint32_t *)where) = re->compile_options; in pcre2_pattern_info()
132 *((uint32_t *)where) = re->top_backref; in pcre2_pattern_info()
136 *((uint32_t *)where) = re->bsr_convention; in pcre2_pattern_info()
140 *((uint32_t *)where) = re->top_bracket; in pcre2_pattern_info()
144 *((uint32_t *)where) = re->limit_depth; in pcre2_pattern_info()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/
Ddump.cc57 static void DumpRegexpAppending(Regexp* re, std::string* s) { in DumpRegexpAppending() argument
58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) { in DumpRegexpAppending()
59 *s += StringPrintf("op%d", re->op()); in DumpRegexpAppending()
61 switch (re->op()) { in DumpRegexpAppending()
68 if (re->parse_flags() & Regexp::NonGreedy) in DumpRegexpAppending()
72 s->append(kOpcodeNames[re->op()]); in DumpRegexpAppending()
73 if (re->op() == kRegexpLiteral && (re->parse_flags() & Regexp::FoldCase)) { in DumpRegexpAppending()
74 Rune r = re->rune(); in DumpRegexpAppending()
78 if (re->op() == kRegexpLiteralString && (re->parse_flags() & Regexp::FoldCase)) { in DumpRegexpAppending()
79 for (int i = 0; i < re->nrunes(); i++) { in DumpRegexpAppending()
[all …]
Dregexp_benchmark.cc35 Regexp* re = Regexp::Parse("(\\d+)-(\\d+)-(\\d+)", Regexp::LikePerl, NULL); in Test() local
36 CHECK(re); in Test()
37 Prog* prog = re->CompileToProg(0); in Test()
49 re->Decref(); in Test()
58 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in MemoryUsage() local
59 CHECK(re); in MemoryUsage()
66 Prog* prog = re->CompileToProg(0); in MemoryUsage()
79 re->Decref(); in MemoryUsage()
85 PCRE re(regexp, PCRE::UTF8); in MemoryUsage() local
88 PCRE::FullMatch(text, re); in MemoryUsage()
[all …]
/external/XNNPACK/scripts/
Dconvert-assembly-to-jit.py13 import re
46 IFDEF_RE = re.compile(r'\s*#(ifndef|endif|ifdef).*')
48 COMMENT_RE = re.compile(SPACES + r'((//|#)\s*.+)')
50 LABEL = re.compile(r'(\w+):')
52 INSTR_RE = re.compile(INSTR + COMMENTS)
54 INSTR_REGLIST_CONSEC_RE = re.compile(INSTR + REGLIST_CONSEC + COMMENTS)
56 INSTR_REGLIST_LIST_RE = re.compile(INSTR + REGLIST_INDIV + COMMENTS)
58 INSTR_OP_RE = re.compile(INSTR + REG + COMMENTS)
60 INSTR_B_IMM = re.compile(INSTR + B_IMM + COMMENTS)
62 INSTR_B_REG_IMM_IMM = re.compile(INSTR + REG + COMMA + IMM + COMMA + B_IMM + COMMENTS)
[all …]
/external/icu/icu4c/source/data/curr/
Dsn.txt8 "Diramu re United Arab Emirates",
16 "Dora re Australia",
20 "Dhinari re Bhahareni",
24 "Furenki re Bhurundi",
28 "Pura re Botswana",
32 "Dora re Kanada",
36 "Furenki re Kongo",
40 "Furenki re Swisi",
48 "Dhora re Escudo",
52 "Furenki re Jibhuti",
[all …]
/external/cronet/third_party/icu/source/data/curr/
Dsn.txt8 "Diramu re United Arab Emirates",
16 "Dora re Australia",
20 "Dhinari re Bhahareni",
24 "Furenki re Bhurundi",
28 "Pura re Botswana",
32 "Dora re Kanada",
36 "Furenki re Kongo",
40 "Furenki re Swisi",
48 "Dhora re Escudo",
52 "Furenki re Jibhuti",
[all …]
/external/rust/crates/regex/tests/
Dapi.rs3 let re = regex!(""); in empty_regex_empty_match() localVariable
4 assert_eq!(vec![(0, 0)], findall!(re, "")); in empty_regex_empty_match()
9 let re = regex!(""); in empty_regex_nonempty_match() localVariable
10 assert_eq!(vec![(0, 0), (1, 1), (2, 2), (3, 3)], findall!(re, "abc")); in empty_regex_nonempty_match()
15 let re = regex!(r"[0-9]*"); in one_zero_length_match() localVariable
16 assert_eq!(vec![(0, 0), (1, 2), (3, 4)], findall!(re, "a1b2")); in one_zero_length_match()
21 let re = regex!(r"[0-9]*"); in many_zero_length_match() localVariable
24 findall!(re, "a1bbb2") in many_zero_length_match()
30 let re = regex!(r"[0-9]?"); in many_sequential_zero_length_match() localVariable
33 findall!(re, "a12b3c") in many_sequential_zero_length_match()
[all …]
/external/clang/docs/tools/
Ddump_ast_matchers.py7 import re
36 text = re.sub(r'&', '&amp;', text)
37 text = re.sub(r'<', '&lt;', text)
38 text = re.sub(r'>', '&gt;', text)
53 text = re.sub(
69 m = re.search(r'Usable as: Any Matcher[\s\n]*$', comment, re.S)
73 m = re.match(r'^(.*)Matcher<([^>]+)>\s*,?[\s\n]*$', comment, re.S)
75 if re.search(r'Usable as:\s*$', comment):
85 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
89 comment = re.sub(r'\\see', r'See also:', comment)
[all …]
/external/python/cpython2/Demo/classes/
DComplex.py88 return obj.re
98 def __init__(self, re=0, im=0): argument
101 if IsComplex(re):
102 _re = re.re
103 _im = re.im
105 _re = re
108 _im = _im + im.re
121 return hash(self.re)
122 return hash((self.re, self.im))
126 return 'Complex(%r)' % (self.re,)
[all …]
/external/openthread/tests/scripts/expect/
Dcli-coex.exp45 expect -re {Stopped: (true|false)}
46 expect -re {Grant Glitch: \d+}
48 expect -re { Request: \d+}
49 expect -re { Grant Immediate: \d+}
50 expect -re { Grant Wait: \d+}
51 expect -re { Grant Wait Activated: \d+}
52 expect -re { Grant Wait Timeout: \d+}
53 expect -re { Grant Deactivated During Request: \d+}
54 expect -re { Delayed Grant: \d+}
55 expect -re { Average Request To Grant Time: \d+}
[all …]
/external/markdown/markdown/extensions/
Dlegacy_em.py15 import re
31 EmStrongItem(re.compile(EM_STRONG2_RE, re.DOTALL | re.UNICODE), 'double', 'strong,em'),
32 EmStrongItem(re.compile(STRONG_EM2_RE, re.DOTALL | re.UNICODE), 'double', 'em,strong'),
33 EmStrongItem(re.compile(STRONG_EM_RE, re.DOTALL | re.UNICODE), 'double2', 'strong,em'),
34 EmStrongItem(re.compile(STRONG_RE, re.DOTALL | re.UNICODE), 'single', 'strong'),
35 EmStrongItem(re.compile(EMPHASIS_RE, re.DOTALL | re.UNICODE), 'single', 'em')

12345678910>>...229