Home
last modified time | relevance | path

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

12345678910>>...104

/external/chromium_org/v8/test/mjsunit/
Dregexp-lookahead.js35 function testRE(re, input, expected_result) { argument
36 var testName = re + ".test(" + stringEscape(input) +")";
38 assertTrue(re.test(input), testName);
40 assertFalse(re.test(input), testName);
44 function execRE(re, input, expected_result) { argument
45 var testName = re + ".exec('" + stringEscape(input) +"')";
46 assertEquals(expected_result, re.exec(input), testName);
51 var re = /^(?=a)/; variable
52 testRE(re, "a", true);
53 testRE(re, "b", false);
[all …]
Dregexp.js39 var re = new RegExp(s); variable
40 assertEquals(s.match(re).length, 1);
41 assertEquals(s.match(re)[0], String.fromCharCode(0));
45 re = /^./gm; // any non-newline character at the beginning of a line
46 var result = s.match(re);
55 re = /.$/gm; // any non-newline character at the end of a line
56 result = s.match(re);
65 re = /^[^]/gm; // *any* character at the beginning of a line
66 result = s.match(re);
76 re = /[^]$/gm; // *any* character at the end of a line
[all …]
/external/chromium_org/third_party/re2/re2/
Dsimplify.cc21 Regexp* re = Parse(src, flags, status); in SimplifyRegexp() local
22 if (re == NULL) in SimplifyRegexp()
24 Regexp* sre = re->Simplify(); in SimplifyRegexp()
25 re->Decref(); in SimplifyRegexp()
106 virtual Regexp* PreVisit(Regexp* re, Regexp* parent_arg, bool* stop);
107 virtual Regexp* PostVisit(Regexp* re,
111 virtual Regexp* Copy(Regexp* re);
112 virtual Regexp* ShortVisit(Regexp* re, Regexp* parent_arg);
125 static Regexp* SimplifyRepeat(Regexp* re, int min, int max,
131 static Regexp* SimplifyCharClass(Regexp* re);
[all …]
/external/regex-re2/re2/
Dsimplify.cc21 Regexp* re = Parse(src, flags, status); in SimplifyRegexp() local
22 if (re == NULL) in SimplifyRegexp()
24 Regexp* sre = re->Simplify(); in SimplifyRegexp()
25 re->Decref(); in SimplifyRegexp()
106 virtual Regexp* PreVisit(Regexp* re, Regexp* parent_arg, bool* stop);
107 virtual Regexp* PostVisit(Regexp* re,
111 virtual Regexp* Copy(Regexp* re);
112 virtual Regexp* ShortVisit(Regexp* re, Regexp* parent_arg);
125 static Regexp* SimplifyRepeat(Regexp* re, int min, int max,
131 static Regexp* SimplifyCharClass(Regexp* re);
[all …]
/external/libcxx/test/re/re.regex/re.regex.construct/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.regex/re.regex.construct/Android.mk
19 test_name := re/re.regex/re.regex.construct/default
23 test_name := re/re.regex/re.regex.construct/string
27 test_name := re/re.regex/re.regex.construct/awk_oct
31 test_name := re/re.regex/re.regex.construct/iter_iter_flg
35 test_name := re/re.regex/re.regex.construct/iter_iter
39 test_name := re/re.regex/re.regex.construct/copy
43 test_name := re/re.regex/re.regex.construct/ptr_size_flg
47 test_name := re/re.regex/re.regex.construct/bad_escape
51 test_name := re/re.regex/re.regex.construct/ptr
[all …]
/external/icu/icu4c/source/test/cintltst/
Dreapits.c52 re = uregex_openC(pattern, flags, NULL, &status); \
56 uregex_setText(re, srcString, -1, &status); \
63 uregex_close(re); \
200 URegularExpression *re; in TestRegexCAPI() local
208 re = uregex_open(pat, -1, 0, 0, &status); in TestRegexCAPI()
213 uregex_close(re); in TestRegexCAPI()
217 re = uregex_open(pat, -1, in TestRegexCAPI()
221 uregex_close(re); in TestRegexCAPI()
225 re = uregex_open(pat, -1, 0x40000000, 0, &status); in TestRegexCAPI()
227 uregex_close(re); in TestRegexCAPI()
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dreapits.c52 re = uregex_openC(pattern, flags, NULL, &status); \
56 uregex_setText(re, srcString, -1, &status); \
63 uregex_close(re); \
200 URegularExpression *re; in TestRegexCAPI() local
208 re = uregex_open(pat, -1, 0, 0, &status); in TestRegexCAPI()
213 uregex_close(re); in TestRegexCAPI()
217 re = uregex_open(pat, -1, in TestRegexCAPI()
221 uregex_close(re); in TestRegexCAPI()
225 re = uregex_open(pat, -1, 0x40000000, 0, &status); in TestRegexCAPI()
227 uregex_close(re); in TestRegexCAPI()
[all …]
/external/pcre/dist/
Dpcre_byte_order.c109 REAL_PCRE *re = (REAL_PCRE *)argument_re; in pcre_pattern_to_host_byte_order() local
120 if (re == NULL) return PCRE_ERROR_NULL; in pcre_pattern_to_host_byte_order()
121 if (re->magic_number == MAGIC_NUMBER) in pcre_pattern_to_host_byte_order()
123 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; in pcre_pattern_to_host_byte_order()
124 re->tables = tables; in pcre_pattern_to_host_byte_order()
128 if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC; in pcre_pattern_to_host_byte_order()
129 if ((swap_uint32(re->flags) & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; in pcre_pattern_to_host_byte_order()
131 re->magic_number = MAGIC_NUMBER; in pcre_pattern_to_host_byte_order()
132 re->size = swap_uint32(re->size); in pcre_pattern_to_host_byte_order()
133 re->options = swap_uint32(re->options); in pcre_pattern_to_host_byte_order()
[all …]
Dpcre_fullinfo.c82 const REAL_PCRE *re = (const REAL_PCRE *)argument_re; in pcre_fullinfo() local
85 if (re == NULL || where == NULL) return PCRE_ERROR_NULL; in pcre_fullinfo()
95 if (re->magic_number != MAGIC_NUMBER) in pcre_fullinfo()
96 return re->magic_number == REVERSED_MAGIC_NUMBER? in pcre_fullinfo()
101 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; in pcre_fullinfo()
106 *((unsigned long int *)where) = re->options & PUBLIC_COMPILE_OPTIONS; in pcre_fullinfo()
110 *((size_t *)where) = re->size; in pcre_fullinfo()
130 *((int *)where) = re->top_bracket; in pcre_fullinfo()
134 *((int *)where) = re->top_backref; in pcre_fullinfo()
139 ((re->flags & PCRE_FIRSTSET) != 0)? (int)re->first_char : in pcre_fullinfo()
[all …]
/external/libcxx/test/re/re.regex/re.regex.assign/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.regex/re.regex.assign/Android.mk
19 test_name := re/re.regex/re.regex.assign/string
23 test_name := re/re.regex/re.regex.assign/assign_ptr_size_flag
27 test_name := re/re.regex/re.regex.assign/il
31 test_name := re/re.regex/re.regex.assign/assign_ptr_flag
35 test_name := re/re.regex/re.regex.assign/copy
39 test_name := re/re.regex/re.regex.assign/assign
43 test_name := re/re.regex/re.regex.assign/assign_iter_iter_flag
47 test_name := re/re.regex/re.regex.assign/ptr
51 test_name := re/re.regex/re.regex.assign/assign.il
[all …]
/external/opencv/cxcore/src/
D_cxcore.h102 float re, im; member
105 CvComplex32f( float _re, float _im=0 ) : re(_re), im(_im) {} in re() function
114 double re, im; member
117 CvComplex64f( double _re, double _im=0 ) : re(_re), im(_im) {} in re() function
124 inline CvComplex32f::CvComplex32f( const CvComplex64f& v ) : re((float)v.re), im((float)v.im) {} in CvComplex32f()
125 inline CvComplex64f::CvComplex64f( const CvComplex32f& v ) : re(v.re), im(v.im) {} in CvComplex64f()
129 return CvComplex32f( a.re + b.re, a.im + b.im );
134 a.re += b.re;
141 return CvComplex32f( a.re - b.re, a.im - b.im );
146 a.re -= b.re;
[all …]
/external/libcxx/test/re/re.alg/re.alg.search/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.alg/re.alg.search/Android.mk
19 test_name := re/re.alg/re.alg.search/awk
23 test_name := re/re.alg/re.alg.search/grep
27 test_name := re/re.alg/re.alg.search/egrep
31 test_name := re/re.alg/re.alg.search/ecma
35 test_name := re/re.alg/re.alg.search/extended
39 test_name := re/re.alg/re.alg.search/no_update_pos
43 test_name := re/re.alg/re.alg.search/basic
47 test_name := re/re.alg/re.alg.search/lookahead
51 test_name := re/re.alg/re.alg.search/backup
/external/libcxx/test/re/re.syn/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.syn/Android.mk
19 test_name := re/re.syn/cregex_iterator
23 test_name := re/re.syn/wcmatch
27 test_name := re/re.syn/wcregex_token_iterator
31 test_name := re/re.syn/ssub_match
35 test_name := re/re.syn/csub_match
39 test_name := re/re.syn/wsmatch
43 test_name := re/re.syn/wcregex_iterator
47 test_name := re/re.syn/wregex
51 test_name := re/re.syn/wcsub_match
[all …]
/external/libcxx/test/re/re.results/re.results.acc/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.results/re.results.acc/Android.mk
19 test_name := re/re.results/re.results.acc/length
23 test_name := re/re.results/re.results.acc/cbegin_cend
27 test_name := re/re.results/re.results.acc/suffix
31 test_name := re/re.results/re.results.acc/position
35 test_name := re/re.results/re.results.acc/index
39 test_name := re/re.results/re.results.acc/prefix
43 test_name := re/re.results/re.results.acc/begin_end
47 test_name := re/re.results/re.results.acc/str
/external/libcxx/test/re/re.alg/re.alg.match/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.alg/re.alg.match/Android.mk
19 test_name := re/re.alg/re.alg.match/awk
23 test_name := re/re.alg/re.alg.match/grep
27 test_name := re/re.alg/re.alg.match/egrep
31 test_name := re/re.alg/re.alg.match/ecma
35 test_name := re/re.alg/re.alg.match/extended
39 test_name := re/re.alg/re.alg.match/basic
43 test_name := re/re.alg/re.alg.match/parse_curly_brackets
47 test_name := re/re.alg/re.alg.match/lookahead_capture
/external/chromium_org/third_party/re2/re2/testing/
Ddump.cc57 static void DumpRegexpAppending(Regexp* re, string* s) { in DumpRegexpAppending() argument
58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) { in DumpRegexpAppending()
59 StringAppendF(s, "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 …]
/external/regex-re2/re2/testing/
Ddump.cc57 static void DumpRegexpAppending(Regexp* re, string* s) { in DumpRegexpAppending() argument
58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) { in DumpRegexpAppending()
59 StringAppendF(s, "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 …]
/external/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.iter/re.tokiter/re.tokiter.cnstr/Android.mk
19 test_name := re/re.iter/re.tokiter/re.tokiter.cnstr/default
23 test_name := re/re.iter/re.tokiter/re.tokiter.cnstr/int
27 test_name := re/re.iter/re.tokiter/re.tokiter.cnstr/array
31 test_name := re/re.iter/re.tokiter/re.tokiter.cnstr/init
35 test_name := re/re.iter/re.tokiter/re.tokiter.cnstr/vector
/external/chromium_org/chrome/browser/web_dev_style/
Dcss_checker.py23 re = self.input_api.re
35 at_reg = re.compile(r"""
39 re.DOTALL | re.VERBOSE)
43 return re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', s)
46 grit_reg = re.compile(r"""
49 re.DOTALL | re.VERBOSE)
50 return re.sub(grit_reg, '', s)
60 return re.sub(r'^-(?:o|ms|moz|khtml|webkit)-', '', s)
64 for rule in re.finditer(r'{(.*?)}', contents, re.DOTALL):
73 brace_space_reg = re.compile(r"""
[all …]
/external/chromium_org/v8/test/mjsunit/regress/
Dregress-52801.js39 var re = /a/g; variable
45 re.test(str);
46 assertEquals(5, re.lastIndex);
48 re.lastIndex = 0;
49 re.test(str);
50 assertEquals(5, re.lastIndex); // Fails if caching.
52 re.lastIndex = 0;
53 re.test(str);
54 assertEquals(5, re.lastIndex); // Fails if caching.
58 re = /a/g;
[all …]
/external/libcxx/test/re/re.traits/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.traits/Android.mk
19 test_name := re/re.traits/default
23 test_name := re/re.traits/lookup_classname
27 test_name := re/re.traits/length
31 test_name := re/re.traits/transform
35 test_name := re/re.traits/translate_nocase
39 test_name := re/re.traits/translate
43 test_name := re/re.traits/imbue
47 test_name := re/re.traits/types
51 test_name := re/re.traits/isctype
[all …]
/external/libcxx/test/re/re.submatch/re.submatch.members/
DAndroid.mk17 test_makefile := external/libcxx/test/re/re.submatch/re.submatch.members/Android.mk
19 test_name := re/re.submatch/re.submatch.members/default
23 test_name := re/re.submatch/re.submatch.members/compare_string_type
27 test_name := re/re.submatch/re.submatch.members/length
31 test_name := re/re.submatch/re.submatch.members/operator_string
35 test_name := re/re.submatch/re.submatch.members/compare_value_type_ptr
39 test_name := re/re.submatch/re.submatch.members/compare_sub_match
43 test_name := re/re.submatch/re.submatch.members/str
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/
Dactions.c17 r->re = NULL; in Symbol_init()
97 RegExp_calcSize(RegExp *re, Char *rep) in RegExp_calcSize() argument
102 switch (re->type) { in RegExp_calcSize()
104 re->size = 0; in RegExp_calcSize()
107 re->size = 1; in RegExp_calcSize()
108 for(r = re->d.match; r; r = r->next) in RegExp_calcSize()
111 ++re->size; in RegExp_calcSize()
114 RegExp_calcSize(re->d.RuleOp.exp, rep); in RegExp_calcSize()
115 RegExp_calcSize(re->d.RuleOp.ctx, rep); in RegExp_calcSize()
116 re->size = re->d.RuleOp.exp->size + re->d.RuleOp.ctx->size + 1; in RegExp_calcSize()
[all …]
/external/chromium_org/third_party/icu/source/data/curr/
Dsn.txt16 "Diramu re United Arab Emirates",
24 "Dora re Australia",
28 "Dhinari re Bhahareni",
32 "Furenki re Bhurundi",
36 "Pura re Botswana",
40 "Dora re Kanada",
44 "Furenki re Kongo",
48 "Furenki re Swisi",
56 "Dhora re Escudo",
60 "Furenki re Jibhuti",
[all …]
/external/icu/icu4c/source/data/curr/
Dsn.txt16 "Diramu re United Arab Emirates",
24 "Dora re Australia",
28 "Dhinari re Bhahareni",
32 "Furenki re Bhurundi",
36 "Pura re Botswana",
40 "Dora re Kanada",
44 "Furenki re Kongo",
48 "Furenki re Swisi",
56 "Dhora re Escudo",
60 "Furenki re Jibhuti",
[all …]

12345678910>>...104