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

12345

/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/chromium_org/chrome/common/extensions/docs/server2/
H A Dlink_converter.py56 regex = re.compile(r'<a(.*?)href=(.*?)>(.*?)</a>', flags=re.DOTALL)
58 contents = re.sub(regex,
76 regex = re.compile(r'<a(.*?)href=(.*?)>(.*?)</a>', flags=re.DOTALL) variable
/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/lldb/include/lldb/Interpreter/
H A DCommandObjectRegexCommand.h66 RegularExpression regex; member in struct:lldb_private::CommandObjectRegexCommand::Entry
/external/lldb/source/Plugins/SymbolFile/DWARF/
H A DNameToDIE.cpp45 NameToDIE::Find (const RegularExpression& regex, DIEArray &info_array) const argument
47 return m_map.GetValues (regex, info_array);
H A DDWARFDebugPubnamesSet.cpp156 DWARFDebugPubnamesSet::Find(const RegularExpression& regex, std::vector<dw_offset_t>& die_offset_coll) const argument
162 if ( regex.Execute(pos->name.c_str()) )
H A DDWARFDebugPubnames.cpp283 DWARFDebugPubnames::Find(const RegularExpression& regex, std::vector<dw_offset_t>& die_offsets) const argument
292 (*pos).Find(regex, die_offsets);
/external/llvm/include/llvm/Support/
H A DRegex.h50 Regex &operator=(Regex regex) { argument
51 std::swap(preg, regex.preg);
52 std::swap(error, regex.error);
55 Regex(Regex &&regex) { argument
56 preg = regex.preg;
57 error = regex.error;
58 regex.preg = nullptr;
62 /// isValid - returns the error encountered during regex compilation, or
66 /// getNumMatches - In a valid regex, return the number of parenthesized
68 /// many entries plus one for the whole regex (a
[all...]
/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/third_party/WebKit/Source/bindings/core/v8/
H A DScriptRegexp.cpp52 v8::Local<v8::RegExp> regex = v8::RegExp::New(v8String(isolate, pattern), static_cast<v8::RegExp::Flags>(flags)); local
54 // If the regex failed to compile we'll get an empty handle.
55 if (!regex.IsEmpty())
56 m_regex.set(isolate, regex);
78 v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate); local
79 v8::Local<v8::Function> exec = regex->Get(v8AtomicString(isolate, "exec")).As<v8::Function>();
81 v8::Local<v8::Value> returnValue = V8ScriptRunner::callInternalFunction(exec, regex, WTF_ARRAY_LENGTH(argv), argv, isolate);
/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/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);
53 /// getNumMatches - In a valid regex, return the number of parenthesized
178 // 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_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> > getScriptRegexpMatchesByLines(const ScriptRegexp* regex, const String& text) argument
75 if (regex->match(line, 0, &matchLength) != -1)
101 OwnPtr<ScriptRegexp> regex = ContentSearchUtils::createSearchRegex(query, caseSensitive, isRegex); local
102 Vector<pair<int, String> > matches = getScriptRegexpMatchesByLines(regex.get(), text);
/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/droiddriver/src/com/google/android/droiddriver/finders/
H A DPredicates.java206 * if its {@code attribute} matches {@code regex}.
208 public static Predicate<UiElement> attributeMatches(final Attribute attribute, final String regex) { argument
213 return actual != null && actual.matches(regex);
218 return String.format("{%s matches %s}", attribute, regex);
/external/lldb/source/Symbol/
H A DVariableList.cpp119 VariableList::AppendVariablesIfUnique (const RegularExpression& regex, VariableList &var_list, size_t& total_matches) argument
125 if ((*pos)->NameMatches (regex))

Completed in 1123 milliseconds

12345