Home
last modified time | relevance | path

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

12

/third_party/node/src/
Dstring_search.h94 : pattern_(pattern), start_(0) { in StringSearch()
99 size_t pattern_length = pattern_.length(); in StringSearch()
173 Vector pattern_; variable
296 CHECK_EQ(1, pattern_.length()); in SingleCharSearch()
297 return FindFirstCharacter(pattern_, subject, index); in SingleCharSearch()
309 CHECK_GT(pattern_.length(), 1); in LinearSearch()
310 const size_t n = subject.length() - pattern_.length(); in LinearSearch()
312 i = FindFirstCharacter(pattern_, subject, i); in LinearSearch()
318 for (size_t j = 1; j < pattern_.length(); j++) { in LinearSearch()
319 if (pattern_[j] != subject[i + j]) { in LinearSearch()
[all …]
/third_party/boost/boost/wave/util/
Dpattern_parser.hpp38 pattern_and(CharT pattern_, unsigned long pattern_mask_ = 0UL) in pattern_and()
39 : pattern(pattern_), in pattern_and()
41 pattern_mask_ : (unsigned long)pattern_) in pattern_and()
45 bool test(T pattern_) const in test()
46 { return ((unsigned long)pattern_ & pattern_mask) == (unsigned long)pattern; } in test()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringSearch.java135 private Pattern pattern_; field in StringSearch
195 pattern_ = new Pattern(pattern); in StringSearch()
322 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator()
323 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator()
334 return pattern_.text_; in getPattern()
350 pattern_.text_ = pattern; in setPattern()
471 if (pattern_.CELength_ == 0) { in handleNext()
520 if (pattern_.CELength_ == 0) { in handlePrevious()
691 int patternlength = pattern_.text_.length(); in initializePatternCETable()
695 coleiter = new CollationElementIterator(pattern_.text_, collator_); in initializePatternCETable()
[all …]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java135 private Pattern pattern_; field in StringSearch
196 pattern_ = new Pattern(pattern); in StringSearch()
329 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator()
330 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator()
342 return pattern_.text_; in getPattern()
359 pattern_.text_ = pattern; in setPattern()
487 if (pattern_.CELength_ == 0) { in handleNext()
537 if (pattern_.CELength_ == 0) { in handlePrevious()
708 int patternlength = pattern_.text_.length(); in initializePatternCETable()
712 coleiter = new CollationElementIterator(pattern_.text_, collator_); in initializePatternCETable()
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dreduce_int8.cc44 pattern_ = kernel::N; in OneAxis()
46 pattern_ = kernel::H; in OneAxis()
48 pattern_ = kernel::W; in OneAxis()
50 pattern_ = kernel::C; in OneAxis()
59 pattern_ = kernel::NH; in TwoAxes()
61 pattern_ = kernel::NW; in TwoAxes()
64 pattern_ = kernel::NC; in TwoAxes()
66 pattern_ = kernel::HW; in TwoAxes()
69 pattern_ = kernel::HC; in TwoAxes()
72 pattern_ = kernel::WC; in TwoAxes()
[all …]
Dreduce_int8.h79 Four_DIMENSION_REDUCE_TEMPLATE pattern_; variable
/third_party/boost/libs/xpressive/test/
Dtest_non_char.cpp65 std::string pattern_("b.*r"), str_("foobarboo"); in test_dynamic() local
66 std::vector<UChar> pattern(pattern_.begin(), pattern_.end()); in test_dynamic()
85 std::vector<UChar> output = regex_replace(str, urx, pattern_); in test_dynamic()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Doptimizer.cc44 pattern_ = SexpToNode(pattern, fg, primitive_vars_.get(), multigraph_); in Build()
48 if (pattern_ == nullptr) { in Run()
52 auto primitive = GetCNodePrimitive(pattern_); in Run()
56 EquivPtr equiv = pattern_engine_.Match(pattern_, node, *primitive_vars_, empty_equiv); in Run()
Doptimizer.h48 AnfNodePtr pattern_ = nullptr; variable
/third_party/gn/src/base/files/
Dfile_enumerator_posix.cc86 pattern_(pattern), in FileEnumerator()
154 pattern_.clear(); in Next()
166 return pattern_.empty() || in IsPatternMatched()
167 !fnmatch(pattern_.c_str(), path.value().c_str(), FNM_NOESCAPE); in IsPatternMatched()
Dfile_enumerator_win.cc90 pattern_(!pattern.empty() ? pattern : u"*"), in FileEnumerator()
122 BuildSearchFilter(folder_search_policy_, root_path_, pattern_); in Next()
147 pattern_ = u"*"; in Next()
187 return PathMatchSpec(ToWCharT(&src.value()), ToWCharT(&pattern_)) == TRUE; in IsPatternMatched()
Dfile_enumerator.h158 FilePath::StringType pattern_; variable
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/kernels/
Dregex_replace_op.h36 : pattern_(icu::UnicodeString::fromUTF8(pattern)), in pattern_() function
50 const icu::UnicodeString pattern_;
Dregex_replace_op.cc45 icu::RegexMatcher matcher(pattern_, 0, icu_error); in Compute()
/third_party/gn/src/gn/
Dbundle_file_rule.cc37 : target_(bundle_data_target), sources_(sources), pattern_(pattern) { in BundleFileRule()
53 for (const auto& subrange : pattern_.ranges()) { in ApplyPatternToSource()
Dbundle_file_rule.h53 SubstitutionPattern pattern_; variable
/third_party/re2/util/
Dpcre.cc107 pattern_ = pattern; in Init()
174 re = pcre_compile(pattern_.c_str(), in Compile()
181 wrapped += pattern_; in Compile()
189 PCREPORT(ERROR) << "Error compiling '" << pattern_ << "': " << error; in Compile()
577 << " when matching '" << pattern_ << "'" in TryMatch()
584 << " when matching '" << pattern_ << "'" in TryMatch()
597 << " when matching '" << pattern_ << "'" in TryMatch()
Dpcre.h225 const std::string& pattern() const { return pattern_; } in pattern()
495 std::string pattern_; variable
/third_party/googletest/googletest/src/
Dgtest-port.cc720 free(const_cast<char*>(pattern_)); in ~RE()
742 pattern_ = posix::StrDup(regex); in Init()
968 free(const_cast<char*>(pattern_)); in ~RE()
980 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
985 pattern_ = full_pattern_ = nullptr; in Init()
987 pattern_ = posix::StrDup(regex); in Init()
/third_party/mesa3d/src/gtest/src/
Dgtest-port.cc715 free(const_cast<char*>(pattern_)); in ~RE()
737 pattern_ = posix::StrDup(regex); in Init()
963 free(const_cast<char*>(pattern_)); in ~RE()
975 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
980 pattern_ = full_pattern_ = nullptr; in Init()
982 pattern_ = posix::StrDup(regex); in Init()
/third_party/re2/re2/
Dre2.h271 const std::string& pattern() const { return pattern_; } in pattern()
740 std::string pattern_; // string regular expression variable
938 const char* pattern_; in MAKE_INTEGER_PARSER() local
947 lazy_re2->ptr_ = new RE2(lazy_re2->pattern_, lazy_re2->options_); in MAKE_INTEGER_PARSER()
Dre2.cc175 pattern_ = std::string(pattern); in Init()
189 pattern_, in Init()
194 LOG(ERROR) << "Error parsing '" << trunc(pattern_) << "': " in Init()
215 LOG(ERROR) << "Error compiling '" << trunc(pattern_) << "'"; in Init()
241 LOG(ERROR) << "Error reverse compiling '" << trunc(re->pattern_) << "'"; in ReverseProg()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dtext.cc280 … : pattern_(CharToString(pattern)), replace_(CharToString(replace)), replace_all_(replace_all) {} in Data()
281 std::string pattern_; member
290 …return std::make_shared<RegexReplaceOperation>(data_->pattern_, data_->replace_, data_->replace_al… in Parse()
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumbermatcher.cc268 scoped_ptr<const RegExp> pattern_; member in i18n::phonenumbers::PhoneNumberMatcherRegExps
321 pattern_(regexp_factory_for_pattern_->CreateRegExp(StrCat( in PhoneNumberMatcherRegExps()
678 reg_exps_->pattern_->FindAndConsume(text.get(), &candidate)) { in Find()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonemetadata.java80 private String pattern_ = ""; field in Phonemetadata.NumberFormat
82 public String getPattern() { return pattern_; } in getPattern()
85 pattern_ = value; in setPattern()
162 objectOutput.writeUTF(pattern_); in writeExternal()

12