/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
sre.py | 2 It will be removed in the future. sre was moved to re in version 2.5. 6 warnings.warn("The sre module is deprecated, please import re.", namespace 9 from re import * 10 from re import __all__ 13 from re import _compile
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
sre.py | 2 It will be removed in the future. sre was moved to re in version 2.5. 6 warnings.warn("The sre module is deprecated, please import re.", namespace 9 from re import * 10 from re import __all__ 13 from re import _compile
|
/bionic/tests/ |
regex_test.cpp | 24 regex_t re; local 25 ASSERT_EQ(0, regcomp(&re, "ab*c", 0)); 26 ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0)); 27 ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0)); 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 37 regfree(&re);
|
/external/chromium_org/chrome/tools/ |
webforms_extractor.py | 36 import re namespace 56 _RE_FORM_LOCATION_PATTERN = re.compile( 61 """, re.U | re.S | re.I | re.X) 64 _RE_SCRIPT_PATTERN = re.compile( 72 """, re.U | re.S | re.I | re.X [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldRuntimeExceptionTest.java | 27 RuntimeException re = new RuntimeException(message, npe); local 28 assertEquals(message, re.getMessage()); 29 assertEquals(npe, re.getCause()); 31 re = new RuntimeException(null, npe); 32 assertNull(re.getMessage()); 34 re = new RuntimeException(message, null); 35 assertNull(re.getCause()); 40 RuntimeException re = new RuntimeException(npe); local 41 assertEquals(npe, re.getCause()); 43 re = new RuntimeException((Throwable) null) [all...] |
/external/chromium_org/third_party/re2/re2/testing/ |
dump.cc | 57 static void DumpRegexpAppending(Regexp* re, string* s) { 58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) { 59 StringAppendF(s, "op%d", re->op()); 61 switch (re->op()) { 68 if (re->parse_flags() & Regexp::NonGreedy) 72 s->append(kOpcodeNames[re->op()]); 73 if (re->op() == kRegexpLiteral && (re->parse_flags() & Regexp::FoldCase)) { 74 Rune r = re->rune() [all...] |
/external/regex-re2/re2/testing/ |
dump.cc | 57 static void DumpRegexpAppending(Regexp* re, string* s) { 58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) { 59 StringAppendF(s, "op%d", re->op()); 61 switch (re->op()) { 68 if (re->parse_flags() & Regexp::NonGreedy) 72 s->append(kOpcodeNames[re->op()]); 73 if (re->op() == kRegexpLiteral && (re->parse_flags() & Regexp::FoldCase)) { 74 Rune r = re->rune() [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_re.py | 3 import re namespace 4 from re import Scanner 12 # Misc tests from Tim Peters' re.doc 15 # what you're doing. Some of these tests were carefully modeled to 24 x = re.compile('ab+c') 29 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0)) 30 self.assertEqual(re.search('x*', 'axx').span(), (0, 0)) 31 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3)) 32 self.assertEqual(re.search('x+', 'axx').span(), (1, 3)) 33 self.assertEqual(re.search('x', 'aaa'), None [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_re.py | 3 import re namespace 4 from re import Scanner 12 # Misc tests from Tim Peters' re.doc 15 # what you're doing. Some of these tests were carefully modeled to 24 x = re.compile('ab+c') 29 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0)) 30 self.assertEqual(re.search('x*', 'axx').span(), (0, 0)) 31 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3)) 32 self.assertEqual(re.search('x+', 'axx').span(), (1, 3)) 33 self.assertEqual(re.search('x', 'aaa'), None [all...] |
/external/chromium_org/third_party/protobuf/vsprojects/ |
convert2008to2005.sh | 11 sed -i -re 's/Format Version 10.00/Format Version 9.00/g; 17 sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
/external/protobuf/vsprojects/ |
convert2008to2005.sh | 11 sed -i -re 's/Format Version 10.00/Format Version 9.00/g; 17 sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
/external/chromium_org/third_party/WebKit/Source/core/scripts/ |
list_idl_files_with_partial_interface.py | 31 import re namespace 34 partial_interface_regex = re.compile(r'partial\s+interface\s+(\w+).+\]', re.M | re.S) 41 match = re.search(partial_interface_regex, f.read())
|
/external/chromium_org/v8/test/mjsunit/ |
regexp.js | 39 var re = new RegExp(s); 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 lin [all...] |
/external/v8/test/mjsunit/ |
regexp.js | 39 var re = new RegExp(s); 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 lin [all...] |
/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
bug-regex16.c | 14 struct re_pattern_buffer re; local 19 memset (&re, 0, sizeof (re)); 20 s = re_compile_pattern ("[[.invalid_collating_symbol.]]", 30, &re); 26 s = re_compile_pattern ("[[=invalid_equivalence_class=]]", 31, &re); 32 s = re_compile_pattern ("[[:invalid_character_class:]]", 29, &re);
|
bug-regex21.c | 33 regex_t re; local 43 if (regcomp (&re, "X-.+:.+Y=\".*\\.(A|B|C|D|E|F|G|H|I", 50 regfree (&re);
|
/external/chromium_org/third_party/re2/re2/ |
mimics_pcre.cc | 31 // Returns whether re might match an empty string. 32 static bool CanBeEmptyString(Regexp *re); 40 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg, bool* child_args, 43 bool ShortVisit(Regexp* re, bool a) { 50 // Called after visiting each of re's children and accumulating 53 bool PCREWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg, 61 switch (re->op()) { 66 if (CanBeEmptyString(re->sub()[0])) 70 if (re->max() == -1 && CanBeEmptyString(re->sub()[0]) [all...] |
simplify.cc | 5 // Rewrite POSIX and other features in re 21 Regexp* re = Parse(src, flags, status); local 22 if (re == NULL) 24 Regexp* sre = re->Simplify(); 25 re->Decref(); 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); 122 // Simplifies the expression re{min,max} in terms of *, +, and ? 299 Regexp* re = new Regexp(kRegexpConcat, parse_flags); local [all...] |
/external/regex-re2/re2/ |
mimics_pcre.cc | 31 // Returns whether re might match an empty string. 32 static bool CanBeEmptyString(Regexp *re); 40 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg, bool* child_args, 43 bool ShortVisit(Regexp* re, bool a) { 50 // Called after visiting each of re's children and accumulating 53 bool PCREWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg, 61 switch (re->op()) { 66 if (CanBeEmptyString(re->sub()[0])) 70 if (re->max() == -1 && CanBeEmptyString(re->sub()[0]) [all...] |
simplify.cc | 5 // Rewrite POSIX and other features in re 21 Regexp* re = Parse(src, flags, status); local 22 if (re == NULL) 24 Regexp* sre = re->Simplify(); 25 re->Decref(); 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); 122 // Simplifies the expression re{min,max} in terms of *, +, and ? 299 Regexp* re = new Regexp(kRegexpConcat, parse_flags); local [all...] |
/external/chromium_org/tools/valgrind/asan/ |
asan_symbolize.py | 9 import re namespace 14 file_name = re.sub(".*" + path_to_cut, "", file_name) 15 file_name = re.sub(".*asan_[a-z_]*.cc:[0-9]*", "_asan_rtl_", file_name) 16 file_name = re.sub(".*crtstuff.c:0", "???:0", file_name)
|
/external/opencv/cxcore/src/ |
_cxcore.h | 102 float re, im; member in struct:CvComplex32f 105 CvComplex32f( float _re, float _im=0 ) : re(_re), im(_im) {} 107 //CvComplex32f( const CvComplex32f& v ) : re(v.re), im(v.im) {} 108 //CvComplex32f& operator = (const CvComplex32f& v ) { re = v.re; im = v.im; return *this; } 114 double re, im; member in struct:CvComplex64f 117 CvComplex64f( double _re, double _im=0 ) : re(_re), im(_im) {} 119 //CvComplex64f( const CvComplex64f& v ) : re(v.re), im(v.im) { [all...] |
/external/chromium-trace/trace-viewer/third_party/web_dev_style/web_dev_style/ |
css_checker.py | 10 we're checking against here. 23 re = self.input_api.re 35 return re.sub(re.compile(r'@\w+.*?{(.*{.*?})+.*?}', re.DOTALL), '\\1', s) 38 return re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', s) 42 return re.sub(re.compile(grit_reg, re.DOTALL), '', s [all...] |
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
javascripttokenizer.py | 23 import re namespace 65 NUMBER = re.compile(r""" 67 """ % (HEX_LITERAL, DECIMAL_LITERAL), re.VERBOSE) 74 SINGLE_QUOTE = re.compile(r"'") 75 SINGLE_QUOTE_TEXT = re.compile(r"([^'\\]|\\(.|$))+") 76 DOUBLE_QUOTE = re.compile(r'"') 77 DOUBLE_QUOTE_TEXT = re.compile(r'([^"\\]|\\(.|$))+') 79 START_SINGLE_LINE_COMMENT = re.compile(r'//') 80 END_OF_LINE_SINGLE_LINE_COMMENT = re.compile(r'//$') 82 START_DOC_COMMENT = re.compile(r'/\*\*' [all...] |
/external/chromium_org/third_party/closure_linter/closure_linter/ |
javascripttokenizer.py | 23 import re namespace 65 NUMBER = re.compile(r""" 67 """ % (HEX_LITERAL, DECIMAL_LITERAL), re.VERBOSE) 74 SINGLE_QUOTE = re.compile(r"'") 75 SINGLE_QUOTE_TEXT = re.compile(r"([^'\\]|\\(.|$))+") 76 DOUBLE_QUOTE = re.compile(r'"') 77 DOUBLE_QUOTE_TEXT = re.compile(r'([^"\\]|\\(.|$))+') 79 START_SINGLE_LINE_COMMENT = re.compile(r'//') 80 END_OF_LINE_SINGLE_LINE_COMMENT = re.compile(r'//$') 82 START_DOC_COMMENT = re.compile(r'/\*\*' [all...] |