Home
last modified time | relevance | path

Searched refs:DictionaryEntry (Results 1 – 8 of 8) sorted by relevance

/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerDictionary.h55 class DictionaryEntry {
57 DictionaryEntry() {} in DictionaryEntry() function
58 DictionaryEntry(Word W) : W(W) {} in DictionaryEntry() function
59 DictionaryEntry(Word W, size_t PositionHint) : W(W), PositionHint(PositionHint) {} in DictionaryEntry() function
91 return std::any_of(begin(), end(), [&](const DictionaryEntry &DE) { in ContainsWord()
95 const DictionaryEntry *begin() const { return &DE[0]; } in begin()
96 const DictionaryEntry *end() const { return begin() + Size; } in end()
97 DictionaryEntry & operator[] (size_t Idx) {
101 void push_back(DictionaryEntry DE) { in push_back()
110 DictionaryEntry DE[kMaxDictSize];
DFuzzerMutate.h86 void AddWordToAutoDictionary(DictionaryEntry DE);
111 DictionaryEntry &DE);
114 DictionaryEntry MakeDictionaryEntryFromCMP(T Arg1, T Arg2,
130 std::vector<DictionaryEntry *> CurrentDictionaryEntrySequence;
133 DictionaryEntry CmpDictionaryEntriesDeque[kCmpDictionaryEntriesDequeSize];
DFuzzerMutate.cpp178 DictionaryEntry &DE) { in ApplyDictionaryEntry()
204 DictionaryEntry MutationDispatcher::MakeDictionaryEntryFromCMP( in MakeDictionaryEntryFromCMP()
229 return DictionaryEntry(W, Positions[Rand(NumPositions)]); in MakeDictionaryEntryFromCMP()
231 DictionaryEntry DE(W); in MakeDictionaryEntryFromCMP()
238 DictionaryEntry DE; in Mutate_AddWordFromTORC()
252 DictionaryEntry &DERef = in Mutate_AddWordFromTORC()
269 DictionaryEntry &DE = D[Rand(D.size())]; in AddWordFromDictionary()
447 std::vector<DictionaryEntry> V; in PrintRecommendedDictionary()
517 void MutationDispatcher::AddWordToAutoDictionary(DictionaryEntry DE) { in AddWordToAutoDictionary()
DFuzzerDefs.h61 class DictionaryEntry; variable
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs301 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Current); in IDictionary_GetEnumerator()
302 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Entry); in IDictionary_GetEnumerator()
332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
345 dictionary.Remove(new DictionaryEntry("x", "y")); in IDictionary_Remove()
357 var array = new DictionaryEntry[3]; in IDictionary_CopyTo()
359 …llectionAssert.AreEqual(new[] { default(DictionaryEntry), new DictionaryEntry("x", "y"), default(D… in IDictionary_CopyTo()
363 CollectionAssert.AreEqual(new object[] { null, new DictionaryEntry("x", "y"), null }, in IDictionary_CopyTo()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs302 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Current); in IDictionary_GetEnumerator()
303 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Entry); in IDictionary_GetEnumerator()
333 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
346 dictionary.Remove(new DictionaryEntry("x", "y")); in IDictionary_Remove()
358 var array = new DictionaryEntry[3]; in IDictionary_CopyTo()
360 …llectionAssert.AreEqual(new[] { default(DictionaryEntry), new DictionaryEntry("x", "y"), default(D… in IDictionary_CopyTo()
364 CollectionAssert.AreEqual(new object[] { null, new DictionaryEntry("x", "y"), null }, in IDictionary_CopyTo()
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DMapField.cs565 … ICollection temp = this.Select(pair => new DictionaryEntry(pair.Key, pair.Value)).ToList(); in ICollection.CopyTo()
628 public DictionaryEntry Entry { get { return new DictionaryEntry(Key, Value); } }
/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs594 foreach (DictionaryEntry entry in fields) in WriteStruct()
667 foreach (DictionaryEntry pair in dictionary) in WriteDictionary()