Home
last modified time | relevance | path

Searched refs:pattern_ (Results 1 – 22 of 22) sorted by relevance

/external/chromium/chrome/browser/content_settings/
Dcontent_settings_pattern.cc53 if (pattern_.empty()) in IsValid()
56 if (IsValidHostlessPattern(pattern_)) in IsValid()
59 const std::string host(pattern_.length() > kDomainWildcardLength && in IsValid()
60 StartsWithASCII(pattern_, kDomainWildcard, false) ? in IsValid()
61 pattern_.substr(kDomainWildcardLength) : in IsValid()
62 pattern_); in IsValid()
73 if (pattern_.length() < kDomainWildcardLength || in Matches()
74 !StartsWithASCII(pattern_, kDomainWildcard, false)) in Matches()
75 return pattern_ == host; in Matches()
78 host.rfind(pattern_.substr(kDomainWildcardLength)); in Matches()
[all …]
Dcontent_settings_pattern.h29 : pattern_(pattern), in ContentSettingsPattern()
44 const std::string& AsString() const { return pattern_; } in AsString()
47 return pattern_ == other.pattern_;
72 : pattern_(host), in ContentSettingsPattern()
75 std::string pattern_; variable
Dcontent_settings_details.h26 : pattern_(pattern), in ContentSettingsDetails()
31 const ContentSettingsPattern& pattern() const { return pattern_; } in pattern()
34 bool update_all() const { return pattern_.AsString().empty(); } in update_all()
51 ContentSettingsPattern pattern_;
/external/v8/src/
Dstring-search.h81 pattern_(pattern), in StringSearch()
84 if (!IsAsciiString(pattern_)) { in StringSearch()
89 int pattern_length = pattern_.length(); in StringSearch()
197 Vector<const PatternChar> pattern_; variable
214 ASSERT_EQ(1, search->pattern_.length()); in SingleCharSearch()
215 PatternChar pattern_first_char = search->pattern_[0]; in SingleCharSearch()
266 Vector<const PatternChar> pattern = search->pattern_; in LinearSearch()
303 Vector<const PatternChar> pattern = search->pattern_; in BoyerMooreSearch()
353 int pattern_length = pattern_.length(); in PopulateBoyerMooreTable()
354 const PatternChar* pattern = pattern_.start(); in PopulateBoyerMooreTable()
[all …]
Dast.h1001 pattern_(pattern), in RegExpLiteral()
1006 Handle<String> pattern() const { return pattern_; } in DECLARE_NODE_TYPE()
1010 Handle<String> pattern_;
Dhydrogen-instructions.h3578 pattern_(pattern), in HRegExpLiteral()
3581 Handle<String> pattern() { return pattern_; } in pattern()
3591 Handle<String> pattern_;
/external/gtest/src/
Dgtest-port.cc83 free(const_cast<char*>(pattern_)); in ~RE()
105 pattern_ = strdup(regex); in Init()
334 free(const_cast<char*>(pattern_)); in ~RE()
346 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
351 pattern_ = full_pattern_ = NULL; in Init()
354 pattern_ = _strdup(regex); in Init()
356 pattern_ = strdup(regex); in Init()
/external/llvm/utils/unittest/googletest/
Dgtest-port.cc122 free(const_cast<char*>(pattern_)); in ~RE()
144 pattern_ = posix::StrDup(regex); in Init()
374 free(const_cast<char*>(pattern_)); in ~RE()
386 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
391 pattern_ = full_pattern_ = NULL; in Init()
393 pattern_ = posix::StrDup(regex); in Init()
/external/protobuf/gtest/src/
Dgtest-port.cc114 free(const_cast<char*>(pattern_)); in ~RE()
136 pattern_ = posix::StrDup(regex); in Init()
365 free(const_cast<char*>(pattern_)); in ~RE()
377 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
382 pattern_ = full_pattern_ = NULL; in Init()
384 pattern_ = posix::StrDup(regex); in Init()
/external/chromium/testing/gtest/src/
Dgtest-port.cc124 free(const_cast<char*>(pattern_)); in ~RE()
146 pattern_ = posix::StrDup(regex); in Init()
376 free(const_cast<char*>(pattern_)); in ~RE()
388 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
393 pattern_ = full_pattern_ = NULL; in Init()
395 pattern_ = posix::StrDup(regex); in Init()
/external/pcre/
Dpcrecpp.h504 RE(const RE& re) { Init(re.pattern_, &re.options_); } in RE()
513 Init(re.pattern_, &re.options_);
524 const string& pattern() const { return pattern_; } in pattern()
701 string pattern_; variable
Dpcrecpp.cc83 pattern_ = pat; in Init()
132 re = pcre_compile(pattern_.c_str(), pcre_options, in Compile()
138 wrapped += pattern_; in Compile()
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-port.cc54 free(const_cast<char*>(pattern_)); in ~RE()
67 pattern_ = strdup(regex); in Init()
/external/chromium/sdch/open-vcdiff/src/gtest/internal/
Dgtest-port.h350 const char* pattern() const { return pattern_; } in pattern()
377 const char* pattern_; variable
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhonemetadata.java52 private String pattern_ = ""; field in Phonemetadata.NumberFormat
54 public String getPattern() { return pattern_; } in getPattern()
57 pattern_ = value; in setPattern()
139 objectOutput.writeUTF(pattern_); in writeExternal()
/external/gtest/include/gtest/internal/
Dgtest-port.h543 const char* pattern() const { return pattern_; } in pattern()
580 const char* pattern_; variable
/external/chromium/base/
Dfile_util_posix.cc637 pattern_(root_path.Append(pattern).value()) { in FileEnumerator()
644 pattern_ = FilePath::StringType(); in FileEnumerator()
675 if (pattern_.size() && in Next()
676 fnmatch(pattern_.c_str(), full_path.value().c_str(), FNM_NOESCAPE)) in Next()
Dfile_util_win.cc860 pattern_(pattern), in FileEnumerator()
902 if (pattern_.empty()) in Next()
905 src = src.Append(pattern_); in Next()
925 pattern_ = FilePath::StringType(); in Next()
Dfile_util.h498 FilePath::StringType pattern_; // Empty when we want to find everything. variable
/external/protobuf/gtest/include/gtest/internal/
Dgtest-port.h637 const char* pattern() const { return pattern_; } in pattern()
674 const char* pattern_; variable
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-port.h680 const char* pattern() const { return pattern_; } in pattern()
715 const char* pattern_; variable
/external/chromium/testing/gtest/include/gtest/internal/
Dgtest-port.h812 const char* pattern() const { return pattern_; }
849 const char* pattern_;