Searched defs:regex (Results 1 - 25 of 88) sorted by relevance

1234

/external/chromium/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/
H A Dcontentscript.js6 var regex = /sandwich/; variable
9 if (regex.test(document.body.innerText)) {
/external/chromium_org/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/
H A Dcontentscript.js6 var regex = /sandwich/; variable
9 if (regex.test(document.body.innerText)) {
/external/chromium/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
H A Dcontentscript.js6 var regex = /sandwich/gi; variable
7 matches = document.body.innerText.match(regex);
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
H A Dcontentscript.js5 var regex = /sandwich/gi; variable
6 matches = document.body.innerText.match(regex);
/external/chromium_org/v8/test/webkit/
H A Dgmail-re-re.js58 var regex = /^([^#<\u2264]+)([#<\u2264])(.*)$/; variable
59 shouldBe('regex.exec("24#Midnight").toString()', '"24#Midnight,24,#,Midnight"');
/external/oprofile/libregex/
H A Ddemangle_symbol.cpp59 static regular_expression_replace regex; local
61 setup_regex(regex, OP_DATADIR "/stl.pat");
66 regex.execute(result);
/external/easymock/src/org/easymock/internal/matchers/
H A DFind.java19 import java.util.regex.Pattern;
27 private final String regex; field in class:Find
29 public Find(String regex) { argument
30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
H A DMatches.java26 private final String regex; field in class:Matches
28 public Matches(String regex) { argument
29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
/external/mockito/src/org/mockito/internal/matchers/
H A DFind.java9 import java.util.regex.Pattern;
17 private final String regex; field in class:Find
19 public Find(String regex) { argument
20 this.regex = regex;
24 return actual != null && Pattern.compile(regex).matcher((String) actual).find();
28 description.appendText("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
H A DMatches.java17 private final String regex; field in class:Matches
19 public Matches(String regex) { argument
20 this.regex = regex;
24 return (actual instanceof String) && ((String) actual).matches(regex);
28 description.appendText("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dlink_converter.py58 regex = re.compile(r'<a(.*?)href=(.*?)>(.*?)</a>', flags=re.DOTALL)
60 contents = re.sub(regex,
78 regex = re.compile(r'<a(.*?)href=(.*?)>(.*?)</a>', flags=re.DOTALL) variable
/external/chromium_org/third_party/WebKit/Source/core/platform/text/
H A DRegularExpression.cpp56 v8::Local<v8::RegExp> regex = v8::RegExp::New(v8String(pattern, context->GetIsolate()), static_cast<v8::RegExp::Flags>(flags)); local
58 // If the regex failed to compile we'll get an empty handle.
59 if (!regex.IsEmpty())
60 m_regex.set(isolate, regex);
83 v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate); local
84 v8::Local<v8::Function> exec = regex->Get(v8::String::NewSymbol("exec")).As<v8::Function>();
87 v8::Local<v8::Value> returnValue = exec->Call(regex, 1, argv);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
H A DRegexCache.java21 import java.util.regex.Pattern;
35 public Pattern getPatternForRegex(String regex) { argument
36 Pattern pattern = cache.get(regex);
38 pattern = Pattern.compile(regex);
39 cache.put(regex, pattern);
45 boolean containsRegex(String regex) { argument
46 return cache.containsKey(regex);
/external/protobuf/gtest/test/
H A Dgtest-port_test.cc138 const char regex[] = local
147 regex);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
H A DStringExtensions.cs107 public static string replaceAll( string str, string regex, string newValue ) argument
109 return System.Text.RegularExpressions.Regex.Replace( str, regex, newValue );
112 public static string replaceFirst( string str, string regex, string replacement ) argument
114 return System.Text.RegularExpressions.Regex.Replace( str, regex, replacement );
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DStringExtensions.cs103 public static string replaceAll( this string str, string regex, string newValue ) argument
105 return Regex.Replace( str, regex, newValue );
108 public static string replaceFirst( this string str, string regex, string replacement ) argument
110 return Regex.Replace( str, regex, replacement );
/external/chromium/webkit/glue/
H A Dregular_expression_unittest.cc24 void testMatches(const WebRegularExpression& regex, argument
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, matche
[all...]
/external/llvm/lib/Support/
H A DRegex.cpp22 Regex::Regex(StringRef regex, unsigned Flags) { argument
25 preg->re_endp = regex.end();
32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND);
51 /// getNumMatches - In a valid regex, return the number of parenthesized
173 // Check for regex metacharacters. This list was derived from our regex
/external/mockito/src/org/mockito/
H A DAdditionalMatchers.java428 * @param regex
432 public static String find(String regex) { argument
433 return reportMatcher(new Find(regex)).<String>returnNull();
/external/chromium/chrome/browser/autofill/
H A Dphone_field.h114 RegexType regex; // Field matching reg-ex. member in struct:PhoneField::Parser
/external/chromium_org/components/autofill/core/browser/
H A Dphone_field.h72 RegexType regex; // Field matching reg-ex. member in struct:autofill::PhoneField::Parser
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DContentSearchUtils.cpp59 static Vector<pair<int, String> > getRegularExpressionMatchesByLines(const RegularExpression* regex, const String& text) argument
75 if (regex->match(line, 0, &matchLength) != -1)
97 int countRegularExpressionMatches(const RegularExpression* regex, const String& content) argument
106 while ((position = regex->match(content, start, &matchLength)) != -1) {
120 OwnPtr<RegularExpression> regex = ContentSearchUtils::createSearchRegex(query, caseSensitive, isRegex); local
121 Vector<pair<int, String> > matches = getRegularExpressionMatchesByLines(regex.get(), text);
149 RegularExpression regex(pattern, TextCaseSensitive, MultilineEnabled);
153 int offset = regex.match(content, 0, &matchLength);
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
H A Dregexp_adapter_re2.cc80 string TransformRegularExpressionToRE2Syntax(const string& regex) { argument
81 string re2_regex(regex);
83 return regex;
/external/chromium/sdch/open-vcdiff/src/gtest/
H A Dgtest-port.cc36 #include <regex.h>
66 void RE::Init(const char* regex) { argument
67 pattern_ = strdup(regex);
68 is_valid_ = regcomp(&regex_, regex, REG_EXTENDED) == 0;
70 << "Regular expression \"" << regex
/external/chromium/testing/gtest/src/
H A Dgtest-port.cc117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) { argument
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex
225 FormatRegexSyntaxError(const char* regex, int index) argument
232 ValidateRegex(const char* regex) argument
295 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
322 MatchRegexAtHead(const char* regex, const char* str) argument
358 MatchRegexAnywhere(const char* regex, const char* str) argument
392 Init(const char* regex) argument
[all...]

Completed in 1569 milliseconds

1234