/external/llvm-project/lldb/unittests/DataFormatter/ |
D | FormattersContainerTest.cpp | 28 EXPECT_TRUE(matcher.Matches(ConstString("class Name"))); in TEST() 29 EXPECT_TRUE(matcher.Matches(ConstString("struct Name"))); in TEST() 30 EXPECT_TRUE(matcher.Matches(ConstString("union Name"))); in TEST() 31 EXPECT_TRUE(matcher.Matches(ConstString("enum Name"))); in TEST() 32 EXPECT_TRUE(matcher.Matches(ConstString("Name"))); in TEST() 34 EXPECT_FALSE(matcher.Matches(ConstString("Name "))); in TEST() 35 EXPECT_FALSE(matcher.Matches(ConstString("ame"))); in TEST() 36 EXPECT_FALSE(matcher.Matches(ConstString("Nam"))); in TEST() 37 EXPECT_FALSE(matcher.Matches(ConstString("am"))); in TEST() 38 EXPECT_FALSE(matcher.Matches(ConstString("a"))); in TEST() [all …]
|
/external/llvm/unittests/Support/ |
D | RegexTest.cpp | 27 SmallVector<StringRef, 1> Matches; in TEST_F() local 29 EXPECT_TRUE(r2.match("aa216b", &Matches)); in TEST_F() 30 EXPECT_EQ(1u, Matches.size()); in TEST_F() 31 EXPECT_EQ("216", Matches[0].str()); in TEST_F() 34 EXPECT_TRUE(r3.match("9a:513b", &Matches)); in TEST_F() 35 EXPECT_EQ(3u, Matches.size()); in TEST_F() 36 EXPECT_EQ("9a:513", Matches[0].str()); in TEST_F() 37 EXPECT_EQ("a", Matches[1].str()); in TEST_F() 38 EXPECT_EQ("513", Matches[2].str()); in TEST_F() 40 EXPECT_TRUE(r3.match("9:513b", &Matches)); in TEST_F() [all …]
|
/external/llvm/lib/TableGen/ |
D | StringMatcher.cpp | 24 StringMatcher::StringPair*> &Matches) { in FindFirstNonCommonLetter() argument 25 assert(!Matches.empty()); in FindFirstNonCommonLetter() 26 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { in FindFirstNonCommonLetter() 28 char Letter = Matches[0]->first[i]; in FindFirstNonCommonLetter() 30 for (unsigned str = 0, e = Matches.size(); str != e; ++str) in FindFirstNonCommonLetter() 31 if (Matches[str]->first[i] != Letter) in FindFirstNonCommonLetter() 35 return Matches[0]->first.size(); in FindFirstNonCommonLetter() 44 EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches, in EmitStringMatcherForChar() argument 46 assert(!Matches.empty() && "Must have at least one string to match!"); in EmitStringMatcherForChar() 51 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar() [all …]
|
/external/llvm-project/llvm/unittests/Support/ |
D | RegexTest.cpp | 26 SmallVector<StringRef, 1> Matches; in TEST_F() local 28 EXPECT_TRUE(r2.match("aa216b", &Matches)); in TEST_F() 29 EXPECT_EQ(1u, Matches.size()); in TEST_F() 30 EXPECT_EQ("216", Matches[0].str()); in TEST_F() 33 EXPECT_TRUE(r3.match("9a:513b", &Matches)); in TEST_F() 34 EXPECT_EQ(3u, Matches.size()); in TEST_F() 35 EXPECT_EQ("9a:513", Matches[0].str()); in TEST_F() 36 EXPECT_EQ("a", Matches[1].str()); in TEST_F() 37 EXPECT_EQ("513", Matches[2].str()); in TEST_F() 39 EXPECT_TRUE(r3.match("9:513b", &Matches)); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | StringMatcher.cpp | 29 StringMatcher::StringPair*> &Matches) { in FindFirstNonCommonLetter() argument 30 assert(!Matches.empty()); in FindFirstNonCommonLetter() 31 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { in FindFirstNonCommonLetter() 33 char Letter = Matches[0]->first[i]; in FindFirstNonCommonLetter() 35 for (unsigned str = 0, e = Matches.size(); str != e; ++str) in FindFirstNonCommonLetter() 36 if (Matches[str]->first[i] != Letter) in FindFirstNonCommonLetter() 40 return Matches[0]->first.size(); in FindFirstNonCommonLetter() 49 const std::vector<const StringPair *> &Matches, unsigned CharNo, in EmitStringMatcherForChar() argument 51 assert(!Matches.empty() && "Must have at least one string to match!"); in EmitStringMatcherForChar() 56 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar() [all …]
|
/external/llvm-project/llvm/lib/TableGen/ |
D | StringMatcher.cpp | 29 StringMatcher::StringPair*> &Matches) { in FindFirstNonCommonLetter() argument 30 assert(!Matches.empty()); in FindFirstNonCommonLetter() 31 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { in FindFirstNonCommonLetter() 33 char Letter = Matches[0]->first[i]; in FindFirstNonCommonLetter() 35 for (unsigned str = 0, e = Matches.size(); str != e; ++str) in FindFirstNonCommonLetter() 36 if (Matches[str]->first[i] != Letter) in FindFirstNonCommonLetter() 40 return Matches[0]->first.size(); in FindFirstNonCommonLetter() 49 const std::vector<const StringPair *> &Matches, unsigned CharNo, in EmitStringMatcherForChar() argument 51 assert(!Matches.empty() && "Must have at least one string to match!"); in EmitStringMatcherForChar() 56 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar() [all …]
|
/external/googletest/googlemock/test/ |
D | gmock-matchers_test.cc | 251 EXPECT_TRUE(m.Matches(2)); in TEST() 252 EXPECT_FALSE(m.Matches(3)); in TEST() 266 EXPECT_TRUE(m.Matches(4)); in TEST() 267 EXPECT_FALSE(m.Matches(5)); in TEST() 273 EXPECT_TRUE(m1.Matches(5)); in TEST() 274 EXPECT_FALSE(m1.Matches(6)); in TEST() 280 EXPECT_TRUE(m1.Matches(nullptr)); in TEST() 282 EXPECT_FALSE(m1.Matches(&n)); in TEST() 294 EXPECT_TRUE(m1.Matches(1)); in TEST() 295 EXPECT_FALSE(m1.Matches(2)); in TEST() [all …]
|
/external/webrtc/media/base/ |
D | codec_unittest.cc | 111 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 1))); in TEST() 112 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 0))); in TEST() 113 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 0, 0))); in TEST() 114 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 0, 0, 0))); in TEST() 115 EXPECT_FALSE(c0.Matches(AudioCodec(96, "", 44100, 20000, 1))); in TEST() 116 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 20000, 1))); in TEST() 117 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 30000, 1))); in TEST() 118 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 20000, 2))); in TEST() 119 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 30000, 2))); in TEST() 123 EXPECT_TRUE(c1.Matches(AudioCodec(96, "A", 0, 0, 0))); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | DeclRefExprUtils.cpp | 34 void extractNodesByIdTo(ArrayRef<BoundNodes> Matches, StringRef ID, in extractNodesByIdTo() argument 36 for (const auto &Match : Matches) in extractNodesByIdTo() 53 auto Matches = match( in constReferenceDeclRefExprs() local 59 extractNodesByIdTo(Matches, "declRef", DeclRefs); in constReferenceDeclRefExprs() 69 Matches = match(findAll(callExpr(UsedAsConstRefOrValueArg)), Stmt, Context); in constReferenceDeclRefExprs() 70 extractNodesByIdTo(Matches, "declRef", DeclRefs); in constReferenceDeclRefExprs() 71 Matches = in constReferenceDeclRefExprs() 73 extractNodesByIdTo(Matches, "declRef", DeclRefs); in constReferenceDeclRefExprs() 91 auto Matches = match( in allDeclRefExprs() local 95 extractNodesByIdTo(Matches, "declRef", DeclRefs); in allDeclRefExprs() [all …]
|
/external/llvm/lib/Support/ |
D | Regex.cpp | 59 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match() argument 60 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() 80 if (Matches) { // match position requested in match() 81 Matches->clear(); in match() 86 Matches->push_back(StringRef()); in match() 90 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 100 SmallVector<StringRef, 8> Matches; in sub() local 106 if (!match(String, &Matches)) in sub() 111 std::string Res(String.begin(), Matches[0].begin()); in sub() 159 RefValue < Matches.size()) in sub() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Regex.cpp | 68 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match() argument 72 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() 92 if (Matches) { // match position requested in match() 93 Matches->clear(); in match() 98 Matches->push_back(StringRef()); in match() 102 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 112 SmallVector<StringRef, 8> Matches; in sub() local 118 if (!match(String, &Matches)) in sub() 123 std::string Res(String.begin(), Matches[0].begin()); in sub() 171 RefValue < Matches.size()) in sub() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Regex.cpp | 82 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument 92 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() 114 if (Matches) { // match position requested in match() 115 Matches->clear(); in match() 120 Matches->push_back(StringRef()); in match() 124 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 134 SmallVector<StringRef, 8> Matches; in sub() local 137 if (!match(String, &Matches, Error)) in sub() 142 std::string Res(String.begin(), Matches[0].begin()); in sub() 190 RefValue < Matches.size()) in sub() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | Regex.cpp | 86 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument 96 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() 118 if (Matches) { // match position requested in match() 119 Matches->clear(); in match() 124 Matches->push_back(StringRef()); in match() 128 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 138 SmallVector<StringRef, 8> Matches; in sub() local 141 if (!match(String, &Matches, Error)) in sub() 146 std::string Res(String.begin(), Matches[0].begin()); in sub() 194 RefValue < Matches.size()) in sub() [all …]
|
/external/dng_sdk/source/ |
D | dng_validate.cpp | 578 if (option.Matches ("v", true)) in main() 583 else if (option.Matches ("d", true)) in main() 603 else if (option.Matches ("s", true)) in main() 619 else if (option.Matches ("b4", true)) in main() 624 else if (option.Matches ("size", true)) in main() 640 else if (option.Matches ("min", true)) in main() 656 else if (option.Matches ("max", true)) in main() 672 else if (option.Matches ("proxy", true)) in main() 688 else if (option.Matches ("cs1", true)) in main() 695 else if (option.Matches ("cs2", true)) in main() [all …]
|
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeEnumTypes.cpp | 26 : Matches(), Index(0), Session(PDBSession) { in NativeEnumTypes() 34 Matches.push_back(*TI); in NativeEnumTypes() 43 Matches.push_back(*TI); in NativeEnumTypes() 52 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {} in NativeEnumTypes() 55 return static_cast<uint32_t>(Matches.size()); in getChildCount() 59 if (N < Matches.size()) { in getChildAtIndex() 60 SymIndexId Id = Session.getSymbolCache().findSymbolByTypeIndex(Matches[N]); in getChildAtIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeEnumTypes.cpp | 26 : Matches(), Index(0), Session(PDBSession) { in NativeEnumTypes() 34 Matches.push_back(*TI); in NativeEnumTypes() 43 Matches.push_back(*TI); in NativeEnumTypes() 52 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {} in NativeEnumTypes() 55 return static_cast<uint32_t>(Matches.size()); in getChildCount() 59 if (N < Matches.size()) { in getChildAtIndex() 60 SymIndexId Id = Session.getSymbolCache().findSymbolByTypeIndex(Matches[N]); in getChildAtIndex()
|
/external/llvm-project/lldb/unittests/Target/ |
D | PathMappingListTest.cpp | 18 struct Matches { struct 21 Matches(const char *o, const char *r) : original(o), remapped(r) {} in Matches() function 26 llvm::ArrayRef<Matches> matches, in TestPathMappings() 48 Matches matches[] = { in TEST() 77 Matches matches[] = { in TEST() 99 Matches matches[] = { in TEST()
|
/external/iptables/extensions/ |
D | libip6t_frag.man | 4 Matches the given Identification or range of it. 11 Matches if the reserved fields are filled with zero. 14 Matches on the first fragment. 17 Matches if there are more fragments. 20 Matches if this is the last fragment.
|
D | libxt_policy.man | 16 Matches if the packet is subject to IPsec processing. \fB\-\-pol none\fP 28 Matches the reqid of the policy rule. The reqid can be specified with 35 Matches the SPI of the SA. 38 Matches the encapsulation protocol. 41 Matches the encapsulation mode. 44 Matches the source end-point address of a tunnel mode SA. 48 Matches the destination end-point address of a tunnel mode SA.
|
/external/clang/lib/Sema/ |
D | SemaCUDA.cpp | 150 Sema &S, const FunctionDecl *Caller, llvm::SmallVectorImpl<T> &Matches, in EraseUnwantedCUDAMatchesImpl() argument 152 if (Matches.size() <= 1) in EraseUnwantedCUDAMatchesImpl() 162 Matches.begin(), Matches.end(), in EraseUnwantedCUDAMatchesImpl() 166 Matches.erase( in EraseUnwantedCUDAMatchesImpl() 167 llvm::remove_if(Matches, in EraseUnwantedCUDAMatchesImpl() 169 Matches.end()); in EraseUnwantedCUDAMatchesImpl() 173 SmallVectorImpl<FunctionDecl *> &Matches){ in EraseUnwantedCUDAMatches() argument 175 *this, Caller, Matches, [](const FunctionDecl *item) { return item; }); in EraseUnwantedCUDAMatches() 179 SmallVectorImpl<DeclAccessPair> &Matches) { in EraseUnwantedCUDAMatches() argument 181 *this, Caller, Matches, [](const DeclAccessPair &item) { in EraseUnwantedCUDAMatches() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | TodoCommentCheck.cpp | 29 SmallVector<StringRef, 4> Matches; in HandleComment() local 30 if (!TodoMatch.match(Text, &Matches)) in HandleComment() 33 StringRef Username = Matches[1]; in HandleComment() 34 StringRef Comment = Matches[3]; in HandleComment()
|
/external/llvm/lib/Fuzzer/test/ |
D | RepeatedMemcmp.cpp | 11 int Matches = 0; in LLVMFuzzerTestOneInput() local 15 Matches++; in LLVMFuzzerTestOneInput() 17 if (Matches > 20) { in LLVMFuzzerTestOneInput()
|
/external/rust/crates/regex/src/ |
D | re_trait.rs | 141 fn find_iter(self, text: &Self::Text) -> Matches<Self> { in find_iter() 142 Matches { re: self, text: text, last_end: 0, last_match: None } in find_iter() 154 pub struct Matches<'t, R> struct 165 impl<'t, R> Matches<'t, R> argument 181 impl<'t, R> Iterator for Matches<'t, R> implementation 214 impl<'t, R> FusedIterator for Matches<'t, R> implementation 224 pub struct CaptureMatches<'t, R>(Matches<'t, R>)
|
/external/llvm-project/clang/unittests/StaticAnalyzer/ |
D | Reusables.h | 24 auto Matches = match(decl(hasDescendant(What.bind("root"))), in findNode() local 26 assert(Matches.size() <= 1 && "Ambiguous match!"); in findNode() 27 assert(Matches.size() >= 1 && "Match not found!"); in findNode() 28 const T *Node = selectFirst<T>("root", Matches); in findNode()
|
/external/webrtc/modules/desktop_capture/win/ |
D | cursor_unittest_resources.rc | 18 // Matches IDD_CURSOR1_32BPP. 21 // Matches IDD_CURSOR1_32BPP. 24 // Matches IDD_CURSOR2_32BPP. 27 // Matches IDD_CURSOR3_32BPP.
|