/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
recall.sed | 1 # Check that the empty regex recalls the last *executed* regex, 2 # not the last *compiled* regex
|
bug-regex8.c | 30 #include <regex.h> 36 struct re_pattern_buffer regex; local 40 memset (®ex, '\0', sizeof (regex)); 42 s = re_compile_pattern ("xy$", 3, ®ex); 49 match[0] = re_match_2(®ex,"xyz",3,NULL,0,0,NULL,2); 51 free (regex.buffer); 52 memset (®ex, '\0', sizeof (regex)); 54 s = re_compile_pattern ("xy\\>", 4, ®ex); [all...] |
bug-regex7.c | 30 #include <regex.h> 36 struct re_pattern_buffer regex; local 42 memset (®ex, '\0', sizeof (regex)); 45 s = re_compile_pattern ("a", 1, ®ex); 53 match = re_search (®ex, "baobab", 6, 0, 6, ®s); 67 free (regex.buffer); 68 memset (®ex, '\0', sizeof (regex)); 70 s = re_compile_pattern ("\\(\\(\\(a\\)\\)\\)", 13, ®ex); [all...] |
/external/eigen/cmake/ |
RegexUtils.cmake | 2 STRING(REGEX REPLACE "\\\\" "\\\\\\\\" FILETEST2 "${_str_in}") 3 STRING(REGEX REPLACE "([.$+*?|-])" "\\\\\\1" FILETEST2 "${FILETEST2}") 4 STRING(REGEX REPLACE "\\^" "\\\\^" FILETEST2 "${FILETEST2}") 5 STRING(REGEX REPLACE "\\(" "\\\\(" FILETEST2 "${FILETEST2}") 6 STRING(REGEX REPLACE "\\)" "\\\\)" FILETEST2 "${FILETEST2}") 7 STRING(REGEX REPLACE "\\[" "\\\\[" FILETEST2 "${FILETEST2}") 8 STRING(REGEX REPLACE "\\]" "\\\\]" FILETEST2 "${FILETEST2}")
|
/external/mockito/src/org/mockito/internal/matchers/ |
Matches.java | 17 private final String regex; field in class:Matches 19 public Matches(String regex) { 20 this.regex = regex; 24 return (actual instanceof String) && ((String) actual).matches(regex); 28 description.appendText("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
|
Find.java | 9 import java.util.regex.Pattern; 17 private final String regex; field in class:Find 19 public Find(String regex) { 20 this.regex = regex; 24 return actual != null && Pattern.compile(regex).matcher((String) actual).find(); 28 description.appendText("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.match/ |
parse_curly_brackets.pass.cpp | 10 // <regex> 22 #include <regex> 30 std::regex regex{re}; 32 assert((std::regex_match(target, smatch, regex))); 40 std::regex regex{re, std::regex::extended}; 42 assert((std::regex_match(target, smatch, regex))); 50 std::regex regex{re, std::regex::awk} [all...] |
/external/jsr305/ri/src/main/java/javax/annotation/ |
RegEx.java | 6 import java.util.regex.Pattern; 7 import java.util.regex.PatternSyntaxException; 19 @Syntax("RegEx") 22 public @interface RegEx { 25 static class Checker implements TypeQualifierValidator<RegEx> { 27 public When forConstantValue(RegEx annotation, Object value) {
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_links/ |
popup.html | 7 <input type=checkbox id=regex> 8 <label for=regex>Regex</label><br>
|
/ndk/sources/host-tools/sed-4.2.1/m4/ |
regex.m4 | 19 AC_ARG_WITH([included-regex], 20 [AS_HELP_STRING([--without-included-regex], 21 [don't compile regex; this is the default on systems 29 # If the system regex support is good enough that it passes the 30 # following run test, then default to *not* using the included regex.c. 32 # regex.c. 42 #include <regex.h> 44 [[static struct re_pattern_buffer regex; 63 memset (®ex, 0, sizeof regex); [all...] |
/external/llvm/unittests/Support/ |
RegexTest.cpp | 1 //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===// 10 #include "llvm/Support/Regex.h" 22 Regex r1("^[0-9]+$"); 28 Regex r2("[0-9]+"); 33 Regex r3("[0-9]+([a-f])?:([0-9]+)"); 46 Regex r4("a[^b]+b"); 57 Regex r5(NulPattern); 65 Regex r1("([a-z]+)_\\1"); 71 Regex r2("a([0-9])b\\1c\\1"); 77 Regex r3("a([0-9])([a-z])b\\1\\2") [all...] |
/external/easymock/src/org/easymock/internal/matchers/ |
Find.java | 19 import java.util.regex.Pattern;
27 private final String regex;
field in class:Find 29 public Find(String regex) {
30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
|
Matches.java | 26 private final String regex;
field in class:Matches 28 public Matches(String regex) {
29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
|
/art/test/094-pattern/ |
info.txt | 4 some regex libs, -Xss65k is the minimum allowable size.
|
/dalvik/tests/094-pattern/ |
info.txt | 4 some regex libs, -Xss65k is the minimum allowable size.
|
/external/llvm/cmake/modules/ |
ChooseMSVCCRT.cmake | 13 # 2. Replace the flags in both variables with the new flag via a regex. 18 macro(make_crt_regex regex crts) 19 set(${regex} "") 23 set(${regex} "${${regex}}|(^| +)/${crt}($| +)") 25 string(REGEX REPLACE "^\\|" "" ${regex} "${${regex}}") 28 macro(get_current_crt crt_current regex flagsvar) 31 string(REGEX MATCH "${${regex}}" ${crt_current} "${${flagsvar}}" [all...] |
/external/chromium/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
contentscript.js | 6 var regex = /sandwich/gi; variable 7 matches = document.body.innerText.match(regex);
|
/external/chromium/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/ |
contentscript.js | 6 var regex = /sandwich/; variable 9 if (regex.test(document.body.innerText)) {
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
contentscript.js | 5 var regex = /sandwich/gi; variable 6 matches = document.body.innerText.match(regex);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/ |
contentscript.js | 6 var regex = /sandwich/; variable 9 if (regex.test(document.body.innerText)) {
|
/ndk/sources/cxx-stl/llvm-libc++/patches.android/ |
0002-include-regex-Support-building-with-GCC-4.6.patch | 4 Subject: include/regex: Support building with GCC 4.6 7 include/regex | 6 +++++- 10 diff --git a/include/regex b/include/regex 12 --- a/include/regex 13 +++ b/include/regex
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
regexp.c | 49 struct regex *new_regex; 138 struct regex * 144 struct regex *new_regex; 156 new_regex = ck_malloc(sizeof (struct regex) + re_len - 1); 163 /* GNU regex does not process \t & co. */ 210 match_regex(regex, buf, buflen, buf_start_offset, regarray, regsize) 211 struct regex *regex; 219 static struct regex *regex_last; 229 if (!regex) [all...] |
/external/chromium/webkit/glue/ |
regular_expression_unittest.cc | 24 void testMatches(const WebRegularExpression& regex, 30 EXPECT_EQ(matches[i].matchPosition, regex.match( 46 WebRegularExpression regex("the quick brown fox", WebTextCaseSensitive); 47 EXPECT_EQ(0, regex.match("the quick brown fox")); 48 EXPECT_EQ(1, regex.match(" the quick brown fox")); 49 EXPECT_EQ(3, regex.match("foothe quick brown foxbar")); 51 EXPECT_EQ(-1, regex.match("The quick brown FOX")); 52 EXPECT_EQ(-1, regex.match("the quick brown fo")); 58 WebRegularExpression regex(WebString(pattern, arraysize(pattern)), 73 testMatches(regex, matches, arraysize(matches)) [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
RegexCache.java | 21 import java.util.regex.Pattern; 35 public Pattern getPatternForRegex(String regex) { 36 Pattern pattern = cache.get(regex); 38 pattern = Pattern.compile(regex); 39 cache.put(regex, pattern); 45 boolean containsRegex(String regex) { 46 return cache.containsKey(regex);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.assign/ |
assign_iter_iter_flag.pass.cpp | 10 // <regex> 19 #include <regex> 29 std::regex r2; 32 assert(r2.flags() == std::regex::ECMAScript); 35 r2.assign(I(s4.begin()), I(s4.end()), std::regex::extended); 36 assert(r2.flags() == std::regex::extended); 40 assert(r2.flags() == std::regex::ECMAScript); 43 r2.assign(F(s4.begin()), F(s4.end()), std::regex::extended); 44 assert(r2.flags() == std::regex::extended);
|