/external/google-benchmark/cmake/ |
gnu_posix_regex.cpp | 5 regex_t re; local 6 int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB); 10 return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
posix_regex.cpp | 5 regex_t re; local 6 int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB); 10 return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
std_regex.cpp | 5 std::regex re; local 6 re = std::regex("^[a-z]+[0-9]+$", 8 return std::regex_search(str, re) ? 0 : -1;
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/ppc/ |
aix.exp | 37 -re "AUX val 16 prmhsh 0 snhsh 0 typ 3 algn 2 clss 5 stb 0 snstb 0" { set x0 1 } 38 -re "AUX val 32 prmhsh 0 snhsh 0 typ 3 algn 1 clss 5 stb 0 snstb 0" { set x1 1 } 39 -re "AUX val 64 prmhsh 0 snhsh 0 typ 3 algn 2 clss 5 stb 0 snstb 0" { set x2 1 } 40 -re "AUX val 128 prmhsh 0 snhsh 0 typ 3 algn 3 clss 5 stb 0 snstb 0" { set x3 1 } 41 -re "AUX val 256 prmhsh 0 snhsh 0 typ 3 algn 4 clss 5 stb 0 snstb 0" { set x4 1 } 42 -re "\[^\n\]*\n" { }
|
/external/smali/smalidea/src/main/antlr/ |
smalideaParser.g | 92 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/pcre/dist/ |
pcre_byte_order.c | 109 REAL_PCRE *re = (REAL_PCRE *)argument_re; local 120 if (re == NULL) return PCRE_ERROR_NULL; 121 if (re->magic_number == MAGIC_NUMBER) 123 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; 124 re->tables = tables; 128 if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC; 129 if ((swap_uint32(re->flags) & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; 131 re->magic_number = MAGIC_NUMBER; 132 re->size = swap_uint32(re->size) [all...] |
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/hppa/parse/ |
parse.exp | 34 -re "^ +\[0-9\]+ 0000 23696E63\[^\n\]*\n" { set x [expr $x+1] } 35 -re "^ +\[0-9\]+ 6C756465\[^\n\]*\n" { set x [expr $x+1] } 36 -re "^ +\[0-9\]+ 6B2E6465\[^\n\]*\n" { set x [expr $x+1] } 37 -re "^ +\[0-9\]+ 66220A00\[^\n\]*\n" { set x [expr $x+1] } 38 -re "^ +\[0-9\]+ 0014 09307831\[^\n\]*\n" { set x [expr $x+1] } 39 -re "^ +\[0-9\]+ 3233\[^\n\]*\n" { set x [expr $x+1] } 40 -re "\[^\n\]*\n" { } 63 -re "^ +\[0-9\]+ 0000 22A04000\[^\n\]*\n" { set x [expr $x+1] } 64 -re "^ +\[0-9\]+ 0004 36B50100\[^\n\]*\n" { set x [expr $x+1] } 65 -re "^ +\[0-9\]+ 0008 22A04000\[^\n\]*\n" { set x [expr $x+1] [all...] |
/external/libcxx/test/std/re/re.alg/re.alg.match/ |
lookahead_capture.pass.cpp | 30 std::regex re("^(?=(.))a$"); 31 assert(re.mark_count() == 1); 35 assert(std::regex_match(s, m, re)); 42 std::regex re("^(a)(?=(.))(b)$"); 43 assert(re.mark_count() == 3); 47 assert(std::regex_match(s, m, re)); 56 std::regex re("^(.)(?=(.)(?=.(.)))(...)$"); 57 assert(re.mark_count() == 4); 61 assert(std::regex_match(s, m, re)); 71 std::regex re("^(a)(?!([^b]))(.c)$") [all...] |
parse_curly_brackets.pass.cpp | 28 std::string re("\\{a\\}"); 30 std::regex regex(re); 38 std::string re("\\{a\\}"); 40 std::regex regex(re, std::regex::extended); 48 std::string re("\\{a\\}"); 50 std::regex regex(re, std::regex::awk); 58 std::string re("\\{a\\}"); 60 std::regex regex(re, std::regex::egrep);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.match/ |
lookahead_capture.pass.cpp | 30 std::regex re{"^(?=(.))a$"}; 31 assert(re.mark_count() == 1); 35 assert(std::regex_match(s, m, re)); 42 std::regex re{"^(a)(?=(.))(b)$"}; 43 assert(re.mark_count() == 3); 47 assert(std::regex_match(s, m, re)); 56 std::regex re{"^(.)(?=(.)(?=.(.)))(...)$"}; 57 assert(re.mark_count() == 4); 61 assert(std::regex_match(s, m, re)); 71 std::regex re{"^(a)(?!([^b]))(.c)$"} [all...] |
/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...] |
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/hppa/unsorted/ |
unsorted.exp | 39 -re "DATA\[^\n\]* 2..6\[^\n\]*\n" { set x 1 } 40 -re "\[^\n\]*\n" { } 64 -re "^00000000\[^\n\]*Label\[^\n\]*\n" { set x 1 } 65 -re "^00000000\[^\n\]*L\$01234\[^\n\]*\n" { set x 0 } 66 -re "\[^\n\]*\n" { } 90 -re "^0x00000000\[^\n\]*nop\[^\n\]*\n" { set x 1 } 91 -re "^0x00000004\[^\n\]*nop\[^\n\]*\n" { set x 0 } 92 -re "\[^\n\]*\n" { } 121 -re "\[^\n\]* <main> nop\[^\n\]*\n" { set x 1 } 122 -re "\[^\n\]* <.*end_main> nop\[^\n\]*\n" { set x 1 [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
RouteExceptionTest.java | 28 RouteException re = new RouteException(firstException); local 29 assertSame(firstException, re.getLastConnectException()); 36 RouteException re = new RouteException(firstException); local 37 re.addConnectException(secondException); 38 re.addConnectException(thirdException); 40 IOException connectionIOException = re.getLastConnectException();
|
/external/icu/icu4c/source/test/cintltst/ |
reapits.c | 48 * 're" is the compiled, ready-to-go regular expression. 53 re = uregex_openC(pattern, flags, NULL, &status); \ 57 uregex_setText(re, srcString, -1, &status); \ 64 uregex_close(re); \ 203 URegularExpression *re; local 211 re = uregex_open(pat, -1, 0, 0, &status); 216 uregex_close(re); 220 re = uregex_open(pat, -1, 224 uregex_close(re); 228 re = uregex_open(pat, -1, 0x40000000, 0, &status) 1405 URegularExpression *re; local 2192 URegularExpression *re; local 2231 URegularExpression *re; local 2263 URegularExpression *re; local [all...] |
/external/autotest/client/site_tests/firmware_TouchMTB/ |
mini_color.py | 9 import re namespace 28 cstring = re.sub(bgn_sym, CODE[color] + bgn_sym, string) 29 cstring = re.sub(end_sym, end_sym + NORMAL, cstring)
|
/external/regex-re2/re2/testing/ |
null_walker.cc | 16 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg, 19 bool ShortVisit(Regexp* re, bool a) { 29 // Called after visiting re's children. child_args contains the return 33 bool NullWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg, 38 // Returns whether re can match an empty string.
|
mimics_pcre_test.cc | 66 Regexp* re = Regexp::Parse(t.regexp, flags, NULL); local 67 CHECK(re) << " " << t.regexp; 68 CHECK_EQ(t.should_match, re->MimicsPCRE()) 71 re->Decref();
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t060leftrecursion.py | 2 import re namespace 23 # def recover(self, input, re): 44 # build_ast = re.search(r'output\s*=\s*AST', grammar)
|
/external/regex-re2/re2/ |
set.cc | 38 re2::Regexp* re = Regexp::Parse(pattern, pf, &status); local 39 if (re == NULL) { 50 if (re->op() == kRegexpConcat) { 51 int nsub = re->nsub(); 54 sub[i] = re->sub()[i]->Incref(); 56 re->Decref(); 57 re = re2::Regexp::Concat(sub, nsub + 1, pf); 61 sub[0] = re; 63 re = re2::Regexp::Concat(sub, 2, pf); 65 re_.push_back(re); 78 re2::Regexp* re = re2::Regexp::Alternate(const_cast<re2::Regexp**>(&re_[0]), local [all...] |
/packages/apps/Messaging/build/ |
colorize_errors.py | 20 import re namespace 27 ERROR = re.compile(r"^Error:") 28 WARNING = re.compile(r"^Warning:") 29 STARTS_WITH_WS = re.compile(r"^\s")
|
/external/clang/docs/tools/ |
dump_ast_matchers.py | 7 import re namespace 36 text = re.sub(r'&', '&', text) 37 text = re.sub(r'<', '<', text) 38 text = re.sub(r'>', '>', 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) [all...] |
/external/gmock/test/ |
gmock_output_test.py | 44 import re namespace 68 output = re.sub(r'.*gtest_main.*\n', '', output) 69 output = re.sub(r'\[.*\d+ tests.*\n', '', output) 70 output = re.sub(r'\[.* test environment .*\n', '', output) 71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output) 72 output = re.sub(r'.* FAILED TESTS\n', '', output) 89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output) 95 return re.sub(r' error: ', ' Failure\n', output) 101 return re.sub(r'@\w+', '@0x#', output) 107 return re.sub(r'\(used in test .+\) ', '', output [all...] |
/external/google-breakpad/src/testing/test/ |
gmock_output_test.py | 44 import re namespace 68 output = re.sub(r'.*gtest_main.*\n', '', output) 69 output = re.sub(r'\[.*\d+ tests.*\n', '', output) 70 output = re.sub(r'\[.* test environment .*\n', '', output) 71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output) 72 output = re.sub(r'.* FAILED TESTS\n', '', output) 89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output) 95 return re.sub(r' error: ', ' Failure\n', output) 101 return re.sub(r'@\w+', '@0x#', output) 107 return re.sub(r'\(used in test .+\) ', '', output [all...] |
/external/chromium-trace/catapult/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/autotest/client/cros/ |
tty.py | 10 import re namespace 16 if re.search(
|