/external/ltrace/ |
H A D | glob.c | 22 #include <regex.h> 182 char *regex = NULL; local 183 int status = glob_to_regex(glob, ®ex); 186 assert(regex != NULL); 187 status = regcomp(preg, regex, cflags); 188 free(regex);
|
/external/chromium_org/chrome/browser/ui/webui/extensions/ |
H A D | extension_loader_handler.cc | 242 std::string regex = local 250 // This regex call can fail, but if it does, we just don't highlight anything. 251 re2::RE2::FullMatch(error, regex, &line, &column);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/workspace/ |
H A D | FileSystemMapping.js | 325 var regex = WebInspector.settings.workspaceFolderExcludePattern.asRegExp(); variable 326 return regex && regex.test(folderPath);
|
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | repattrn.cpp | 15 #include "unicode/regex.h" 270 RegexPattern::compile(const UnicodeString ®ex, argument 306 compiler.compile(regex, pe, status); 321 RegexPattern::compile(UText *regex, argument 357 compiler.compile(regex, pe, status); 371 RegexPattern::compile(const UnicodeString ®ex, argument 375 return compile(regex, 0, pe, err); 383 RegexPattern::compile(UText *regex, argument 387 return compile(regex, 0, pe, err); 395 RegexPattern::compile(const UnicodeString ®ex, argument 408 compile(UText *regex, uint32_t flags, UErrorCode &err) argument 475 matches(const UnicodeString ®ex, const UnicodeString &input, UParseError &pe, UErrorCode &status) argument 499 matches(UText *regex, UText *input, UParseError &pe, UErrorCode &status) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/tests/ |
H A D | rc_test_helpers.c | 2 #include <regex.h> 42 regex_t regex; local 46 err_code = regcomp(®ex, regex_str, REG_EXTENDED); 48 regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); 49 fprintf(stderr, "Failed to compile regex: %s\n", err_buf); 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 60 regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); 61 fprintf(stderr, "Failed to match regex: %s\n", err_buf); 99 /* Execute the regex */ 101 fprintf(stderr, "Failed to execute regex fo [all...] |
/external/chromium_org/third_party/mesa/src/src/gtest/src/ |
H A D | gtest-port.cc | 117 // 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...] |
/external/droiddriver/src/com/google/android/droiddriver/finders/ |
H A D | By.java | 62 /** Matches a UiElement whose text matches {@code regex}. */ 63 public static MatchFinder textRegex(String regex) { argument 64 return new MatchFinder(Predicates.attributeMatches(Attribute.TEXT, regex));
|
/external/gtest/src/ |
H A D | gtest-port.cc | 143 // regfree'ing an invalid regex might crash because the content 144 // of the regex is undefined. Since the regex's are essentially 171 void RE::Init(const char* regex) { argument 172 pattern_ = posix::StrDup(regex); 176 const size_t full_regex_len = strlen(regex) + 10; 179 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); 186 // Some implementation of POSIX regex (e.g. on at least some 188 // regex. We change it to an equivalent form "()" to be safe. 190 const char* const partial_regex = (*regex 251 FormatRegexSyntaxError(const char* regex, int index) argument 258 ValidateRegex(const char* regex) argument 321 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument 348 MatchRegexAtHead(const char* regex, const char* str) argument 384 MatchRegexAnywhere(const char* regex, const char* str) argument 418 Init(const char* regex) argument [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | repattrn.cpp | 15 #include "unicode/regex.h" 270 RegexPattern::compile(const UnicodeString ®ex, argument 306 compiler.compile(regex, pe, status); 321 RegexPattern::compile(UText *regex, argument 357 compiler.compile(regex, pe, status); 371 RegexPattern::compile(const UnicodeString ®ex, argument 375 return compile(regex, 0, pe, err); 383 RegexPattern::compile(UText *regex, argument 387 return compile(regex, 0, pe, err); 395 RegexPattern::compile(const UnicodeString ®ex, argument 408 compile(UText *regex, uint32_t flags, UErrorCode &err) argument 475 matches(const UnicodeString ®ex, const UnicodeString &input, UParseError &pe, UErrorCode &status) argument 499 matches(UText *regex, UText *input, UParseError &pe, UErrorCode &status) argument [all...] |
/external/lldb/include/lldb/Core/ |
H A D | UniqueCStringMap.h | 241 GetValues (const RegularExpression& regex, std::vector<T> &values) const argument 248 if (regex.Execute(pos->cstring))
|
/external/lldb/source/Symbol/ |
H A D | SymbolVendor.cpp | 294 SymbolVendor::FindGlobalVariables (const RegularExpression& regex, bool append, size_t max_matches, VariableList& variables) argument 301 return m_sym_file_ap->FindGlobalVariables(regex, append, max_matches, variables); 320 SymbolVendor::FindFunctions(const RegularExpression& regex, bool include_inlines, bool append, SymbolContextList& sc_list) argument 327 return m_sym_file_ap->FindFunctions(regex, include_inlines, append, sc_list);
|
/external/llvm/utils/unittest/googletest/src/ |
H A D | gtest-port.cc | 117 // 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...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
H A D | rc_test_helpers.c | 2 #include <regex.h> 42 regex_t regex; local 46 err_code = regcomp(®ex, regex_str, REG_EXTENDED); 48 regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); 49 fprintf(stderr, "Failed to compile regex: %s\n", err_buf); 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 60 regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); 61 fprintf(stderr, "Failed to match regex: %s\n", err_buf); 99 /* Execute the regex */ 101 fprintf(stderr, "Failed to execute regex fo [all...] |
/external/mesa3d/src/gtest/src/ |
H A D | gtest-port.cc | 117 // 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...] |
/external/mockito/src/org/mockito/ |
H A D | Matchers.java | 732 * @param regex
736 public static String matches(String regex) {
argument 737 return reportMatcher(new Matches(regex)).returnString();
|
/external/oprofile/libregex/ |
H A D | op_regex.cpp | 4 * libc regex, providing regular expression match and replace facility. 46 bool op_regexec(regex_t const & regex, string const & str, regmatch_t * match, argument 49 return regexec(®ex, str.c_str(), nmatch, match, 0) != REG_NOMATCH; 110 replace_t regex = { regexp, replace }; local 111 regex_replace.push_back(regex); 255 void setup_regex(regular_expression_replace & regex, argument 295 regex.add_pattern(left, right); 306 regex.add_definition(var_name, var_value);
|
/external/protobuf/gtest/src/ |
H A D | gtest-port.cc | 135 void RE::Init(const char* regex) { argument 136 pattern_ = posix::StrDup(regex); 140 const size_t full_regex_len = strlen(regex) + 10; 143 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); 150 // Some implementation of POSIX regex (e.g. on at least some 152 // regex. We change it to an equivalent form "()" to be safe. 153 const char* const partial_regex = (*regex == '\0') ? "()" : regex; 157 << "Regular expression \"" << regex 214 String FormatRegexSyntaxError(const char* regex, in argument 221 ValidateRegex(const char* regex) argument 284 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument 311 MatchRegexAtHead(const char* regex, const char* str) argument 347 MatchRegexAnywhere(const char* regex, const char* str) argument 381 Init(const char* regex) argument [all...] |
/external/chromium_org/testing/gtest/test/ |
H A D | gtest-port_test.cc | 362 const char regex[] = local 373 regex);
|
/external/easymock/src/org/easymock/ |
H A D | EasyMock.java | 1315 * @param regex
1319 public static String find(String regex) {
argument 1320 reportMatcher(new Find(regex));
1328 * @param regex
1332 public static String matches(String regex) {
argument 1333 reportMatcher(new Matches(regex));
|
/external/gtest/test/ |
H A D | gtest-port_test.cc | 362 const char regex[] = local 373 regex);
|
/external/lldb/include/lldb/DataFormatters/ |
H A D | FormatNavigator.h | 379 lldb::RegularExpressionSP regex = pos->first; local 380 if ( ::strcmp(type.AsCString(),regex->GetText()) == 0) 417 lldb::RegularExpressionSP regex = m_format_map.GetKeyAtIndex(index); local 418 if (regex.get() == NULL) 420 return lldb::TypeNameSpecifierImplSP(new TypeNameSpecifierImpl(regex->GetText(), 435 lldb::RegularExpressionSP regex = pos->first; local 436 if (regex->Execute(key_cstr)) 453 lldb::RegularExpressionSP regex = pos->first; local 454 if (strcmp(regex->GetText(),key.AsCString()) == 0)
|
/external/lldb/source/Core/ |
H A D | SourceManager.cpp | 323 RegularExpression& regex, 332 return file_sp->FindLinesMatchingRegex (regex, start_line, end_line, match_lines); 490 SourceManager::File::FindLinesMatchingRegex (RegularExpression& regex, uint32_t start_line, uint32_t end_line, std::vector<uint32_t> &match_lines) argument 512 if (regex.Execute(buffer.c_str())) 322 FindLinesMatchingRegex(FileSpec &file_spec, RegularExpression& regex, uint32_t start_line, uint32_t end_line, std::vector<uint32_t> &match_lines) argument
|
/external/lldb/source/Plugins/SymbolFile/Symtab/ |
H A D | SymbolFileSymtab.cpp | 336 SymbolFileSymtab::FindGlobalVariables(const RegularExpression& regex, bool append, uint32_t max_matches, VariableList& variables) argument 356 SymbolFileSymtab::FindFunctions(const RegularExpression& regex, bool include_inlines, bool append, SymbolContextList& sc_list) argument 359 "SymbolFileSymtab::FindFunctions (regex = '%s')", 360 regex.GetText());
|
/external/libselinux/src/ |
H A D | label_file.c | 30 pcre *regex; /* compiled regular expression */ member in struct:spec 32 char regcomp; /* regex_str has been compiled to regex */ 93 * the root directory or a regex that is too complex for us). */ 127 * there is no match - IE for a file in the root directory or a regex that is 259 spec->regex = pcre_compile(anchored_regex, 0, &tmperrbuf, &erroff, NULL); 261 if (!spec->regex) { 267 spec->sd = pcre_study(spec->regex, 0, &tmperrbuf); 287 char *buf_p, *regex = buf1, *type = buf2, *context = buf3; local 301 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context); 313 len = get_stem_from_spec(regex); [all...] |
/external/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDebugInfo.cpp | 723 RegularExpression* regex; member in struct:FindCallbackStringInfoTag 745 if (info->regex) 747 if (info->regex->Execute(die_name))
|