/third_party/boost/libs/unordered/doc/src_code/ |
D | dictionary.cpp | 42 dictionary; in main() local 45 BOOST_TEST(dictionary.empty()); in main() 47 dictionary["one"] = 1; in main() 48 BOOST_TEST(dictionary.size() == 1); in main() 49 BOOST_TEST(dictionary.find("ONE") == dictionary.end()); in main() 51 dictionary.insert(std::make_pair("ONE", 2)); in main() 52 BOOST_TEST(dictionary.size() == 2); in main() 53 BOOST_TEST(dictionary.find("ONE") != dictionary.end() && in main() 54 dictionary.find("ONE")->first == "ONE" && in main() 55 dictionary.find("ONE")->second == 2); in main() [all …]
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 315 IDictionary dictionary = map; in IDictionary_Add() 316 dictionary.Add("a", "b"); in IDictionary_Add() 318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add() 319 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add() 320 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add() 327 IDictionary dictionary = map; in IDictionary_Contains() 329 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains() 330 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains() 332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains() 333 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 316 IDictionary dictionary = map; in IDictionary_Add() 317 dictionary.Add("a", "b"); in IDictionary_Add() 319 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add() 320 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add() 321 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add() 328 IDictionary dictionary = map; in IDictionary_Contains() 330 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains() 331 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains() 333 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains() 334 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains() [all …]
|
/third_party/boost/libs/multi_index/example/ |
D | bimap.cpp | 91 typedef bidirectional_map<std::string,std::string>::type dictionary; typedef 95 dictionary d; in main() 101 d.insert(dictionary::value_type("hola","hello")); in main() 102 d.insert(dictionary::value_type("adios","goodbye")); in main() 103 d.insert(dictionary::value_type("rosa","rose")); in main() 104 d.insert(dictionary::value_type("mesa","table")); in main() 113 dictionary::iterator it=get<from>(d).find(word); in main() 118 nth_index<dictionary,1>::type::iterator it2=get<1>(d).find(word); in main() 129 dictionary::iterator it=d.get<from>().find(word); in main() 139 dictionary::index<to>::type::iterator it2=d.get<to>().find(word); in main()
|
/third_party/boost/libs/bimap/example/mi_to_b_path/ |
D | mi_bidirectional_map.cpp | 60 typedef bidirectional_map<std::string,std::string>::type dictionary; typedef 64 dictionary d; in main() 69 d.insert(dictionary::value_type("hola","hello")); in main() 70 d.insert(dictionary::value_type("adios","goodbye")); in main() 71 d.insert(dictionary::value_type("rosa","rose")); in main() 72 d.insert(dictionary::value_type("mesa","table")); in main() 80 dictionary::iterator it = d.get<from>().find(word); in main() 93 dictionary::index_iterator<to>::type it2 = d.get<to>().find(word); in main()
|
D | bidirectional_map.cpp | 33 typedef bimap<std::string,std::string> dictionary; typedef 34 typedef dictionary::value_type translation; 38 dictionary d; in main() 54 dictionary::left_const_iterator it = d.left.find(word); in main() 70 dictionary::right_const_iterator it2 = d.right.find(word); in main()
|
D | tagged_bidirectional_map.cpp | 40 > dictionary; typedef 42 typedef dictionary::value_type translation; 46 dictionary d; in main() 62 dictionary::map_by<spanish>::const_iterator it = in main() 74 dictionary::map_by<english>::const_iterator it2 = in main()
|
/third_party/mindspore/tests/ut/python/dtype/ |
D | test_dictionary.py | 38 def construct(self, dictionary): argument 39 a = self.max(dictionary["x"], dictionary["y"]) 40 b = self.min(dictionary["x"], dictionary["y"]) 43 …dictionary = {"x": Tensor(np.ones([3, 2, 3], np.float32)), "y": Tensor(np.ones([1, 2, 3], np.float… 47 net(dictionary) 58 …self.dictionary = {"x": Tensor(np.ones([3, 2, 3], np.float32)), "y": Tensor(np.ones([1, 2, 3], np.… 61 a = self.max(self.dictionary["x"], self.dictionary["y"]) 62 b = self.min(self.dictionary["x"], self.dictionary["y"])
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/ |
D | DictionaryData.java | 36 private static void unpackDictionaryData(ByteBuffer dictionary, String data0, String data1, in unpackDictionaryData() argument 40 if (dict.length != dictionary.capacity()) { in unpackDictionaryData() 61 dictionary.put(dict); in unpackDictionaryData() 65 ByteBuffer dictionary = ByteBuffer.allocateDirect(122784); 67 unpackDictionaryData(dictionary, DATA0, DATA1, SKIP_FLIP, sizeBits, SIZE_BITS_DATA); in unpackDictionaryData() argument 68 Utils.flipBuffer(dictionary); 69 Dictionary.setData(dictionary.asReadOnlyBuffer(), sizeBits); in dictionary.asReadOnlyBuffer()
|
/third_party/skia/third_party/externals/brotli/fetch-spec/ |
D | shared-brotli-fetch-spec.txt | 8 The goal is to add support for custom dictionaries for Brotli. A dictionary is used 9 to improve compression. A client can download a dictionary from a server and then 10 use it to decompress resources compressed with this dictionary. 12 This document specifies how the client and server negotiate the dictionary over HTTP. 14 with a URL of the dictionary. The browser downloads the dictionary from the URL and 16 which the client uses to verify the dictionary. Caching, CORS, and other existing 17 mechanisms are used. A dictionary can be a pre-made static dictionary, but does not 31 shared dictionary. 48 Shared-Brotli-dictionary fetch given dictionaryId and request. 55 [NOTE-BOX] If the dictionary is still being fetched, which happens in [all …]
|
/third_party/grpc/tools/buildgen/plugins/ |
D | generate_vsprojects.py | 25 def mako_plugin(dictionary): argument 32 libs = dictionary.get('libs', []) 33 targets = dictionary.get('targets', []) 80 packages = dictionary.get('vspackages', []) 83 dictionary['vsprojects'] = projects 84 dictionary['vsproject_dict'] = project_dict 85 dictionary['vspackages_dict'] = packages_dict
|
D | expand_filegroups.py | 47 def mako_plugin(dictionary): argument 55 libs = dictionary.get('libs') 56 targets = dictionary.get('targets') 57 filegroups_list = dictionary.get('filegroups') 110 for thing in dictionary['libs'] + dictionary['targets'] + dictionary[ 132 for tgt in dictionary['targets']:
|
D | list_protos.py | 24 def mako_plugin(dictionary): argument 34 libs = dictionary.get('libs', []) 35 targets = dictionary.get('targets', []) 53 dictionary['protos'] = protos
|
D | transitive_dependencies.py | 47 def mako_plugin(dictionary): argument 54 lib_map = {lib['name']: lib for lib in dictionary.get('libs')} 56 for target_name, target_list in dictionary.items(): 61 python_dependencies = dictionary.get('python_dependencies')
|
/third_party/python/Doc/c-api/ |
D | dict.rst | 8 .. index:: object: dictionary 13 This subtype of :c:type:`PyObject` represents a Python dictionary object. 18 This instance of :c:type:`PyTypeObject` represents the Python dictionary 36 Return a new empty dictionary, or ``NULL`` on failure. 43 prevent modification of the dictionary for non-dynamic class types. 48 Empty an existing dictionary of all key-value pairs. 53 Determine if dictionary *p* contains *key*. If an item in *p* is matches 60 Return a new dictionary that contains the same key-value pairs as *p*. 65 Insert *val* into the dictionary *p* with a key of *key*. *key* must be 75 Insert *val* into the dictionary *p* using *key* as a key. *key* should [all …]
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | static_dict.c | 32 static BROTLI_INLINE size_t DictMatchLength(const BrotliDictionary* dictionary, in DictMatchLength() argument 37 const size_t offset = dictionary->offsets_by_length[len] + len * id; in DictMatchLength() 38 return FindMatchLengthWithLimit(&dictionary->data[offset], data, in DictMatchLength() 42 static BROTLI_INLINE BROTLI_BOOL IsMatch(const BrotliDictionary* dictionary, in IsMatch() argument 47 const size_t offset = dictionary->offsets_by_length[w.len] + in IsMatch() 49 const uint8_t* dict = &dictionary->data[offset]; in IsMatch() 78 const BrotliEncoderDictionary* dictionary, const uint8_t* data, in BrotliFindAllStaticDictionaryMatches() argument 82 size_t offset = dictionary->buckets[Hash(data)]; in BrotliFindAllStaticDictionaryMatches() 85 DictWord w = dictionary->dict_words[offset++]; in BrotliFindAllStaticDictionaryMatches() 87 const size_t n = (size_t)1 << dictionary->words->size_bits_by_length[l]; in BrotliFindAllStaticDictionaryMatches() [all …]
|
/third_party/node/deps/brotli/c/enc/ |
D | static_dict.c | 32 static BROTLI_INLINE size_t DictMatchLength(const BrotliDictionary* dictionary, in DictMatchLength() argument 37 const size_t offset = dictionary->offsets_by_length[len] + len * id; in DictMatchLength() 38 return FindMatchLengthWithLimit(&dictionary->data[offset], data, in DictMatchLength() 42 static BROTLI_INLINE BROTLI_BOOL IsMatch(const BrotliDictionary* dictionary, in IsMatch() argument 47 const size_t offset = dictionary->offsets_by_length[w.len] + in IsMatch() 49 const uint8_t* dict = &dictionary->data[offset]; in IsMatch() 78 const BrotliEncoderDictionary* dictionary, const uint8_t* data, in BrotliFindAllStaticDictionaryMatches() argument 82 size_t offset = dictionary->buckets[Hash(data)]; in BrotliFindAllStaticDictionaryMatches() 85 DictWord w = dictionary->dict_words[offset++]; in BrotliFindAllStaticDictionaryMatches() 87 const size_t n = (size_t)1 << dictionary->words->size_bits_by_length[l]; in BrotliFindAllStaticDictionaryMatches() [all …]
|
/third_party/protobuf/python/google/protobuf/ |
D | service_reflection.py | 70 def __init__(cls, name, bases, dictionary): argument 83 if GeneratedServiceType._DESCRIPTOR_KEY not in dictionary: 86 descriptor = dictionary[GeneratedServiceType._DESCRIPTOR_KEY] 89 dictionary[GeneratedServiceType._DESCRIPTOR_KEY] = descriptor 106 def __init__(cls, name, bases, dictionary): argument 116 descriptor = dictionary.get(cls._DESCRIPTOR_KEY) 119 dictionary[GeneratedServiceStubType._DESCRIPTOR_KEY] = descriptor 120 super(GeneratedServiceStubType, cls).__init__(name, bases, dictionary) 123 if GeneratedServiceStubType._DESCRIPTOR_KEY not in dictionary:
|
/third_party/node/test/parallel/ |
D | test-zlib-dictionary.js | 54 const deflate = zlib.createDeflate({ dictionary: spdyDict }); property 55 const inflate = zlib.createInflate({ dictionary: spdyDict }); property 81 const deflate = zlib.createDeflate({ dictionary: spdyDict }); property 82 const inflate = zlib.createInflate({ dictionary: spdyDict }); property 113 const deflate = zlib.createDeflateRaw({ dictionary: spdyDict }); property 114 const inflate = zlib.createInflateRaw({ dictionary: spdyDict }); property 140 const deflate = zlib.createDeflateRaw({ dictionary: spdyDict }); property 141 const inflate = zlib.createInflateRaw({ dictionary: spdyDict }); property
|
/third_party/skia/third_party/externals/brotli/scripts/dictionary/ |
D | step-02-rfc-to-bin.py | 16 dictionary = [] variable 22 dictionary.append(int(data[2 * i : 2 * i + 2], 16)) 23 if len(dictionary) == 122784: 32 output.write(bytearray(dictionary)) 34 print("Parsed and saved " + str(len(dictionary)) + " bytes to " + bin_path)
|
/third_party/boost/libs/iostreams/example/ |
D | dictionary_filter.hpp | 33 class dictionary { class 45 dictionary_stdio_filter(dictionary& d) : dictionary_(d) { } in dictionary_stdio_filter() 65 dictionary& dictionary_; 71 dictionary_input_filter(dictionary& d) in dictionary_input_filter() 118 dictionary& dictionary_; 127 dictionary_output_filter(dictionary& d) in dictionary_output_filter() 185 dictionary& dictionary_; 192 inline void dictionary::add(std::string key, const std::string& value) in add() 198 inline void dictionary::replace(std::string& key) in replace() 213 inline void dictionary::tolower(std::string& str) in tolower()
|
/third_party/grpc/tools/buildgen/ |
D | mako_renderer.py | 60 dictionary = {} 107 dictionary = pickle.load(dict_file) 125 dictionary[k] = bunch.to_bunch(v) 129 pickle.dump(dictionary, dict_file) 144 template.render_context(Context(output_file, **dictionary)) 158 for el in dictionary[src['foreach']]: 160 args = dict(dictionary) 169 args = dict(dictionary)
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
D | BUILD.gn | 98 dict = "dictionary.txt" 123 dict = "dictionary.txt" 134 dict = "dictionary.txt" 151 dict = "dictionary.txt" 160 dict = "dictionary.txt" 177 dict = "dictionary.txt" 186 dict = "dictionary.txt" 195 dict = "dictionary.txt" 204 dict = "dictionary.txt" 213 dict = "dictionary.txt" [all …]
|
/third_party/protobuf/objectivec/ |
D | GPBDictionary.h | 83 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary; 178 - (instancetype)initWithDictionary:(GPBUInt32Int32Dictionary *)dictionary; 273 - (instancetype)initWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary; 368 - (instancetype)initWithDictionary:(GPBUInt32Int64Dictionary *)dictionary; 463 - (instancetype)initWithDictionary:(GPBUInt32BoolDictionary *)dictionary; 558 - (instancetype)initWithDictionary:(GPBUInt32FloatDictionary *)dictionary; 653 - (instancetype)initWithDictionary:(GPBUInt32DoubleDictionary *)dictionary; 763 - (instancetype)initWithDictionary:(GPBUInt32EnumDictionary *)dictionary; 910 - (instancetype)initWithDictionary:(GPBUInt32ObjectDictionary *)dictionary; 1004 - (instancetype)initWithDictionary:(GPBInt32UInt32Dictionary *)dictionary; [all …]
|
/third_party/node/tools/inspector_protocol/lib/ |
D | Object_cpp.template | 15 protocol::DictionaryValue* dictionary = DictionaryValue::cast(value); 16 if (!dictionary) { 20 dictionary = static_cast<protocol::DictionaryValue*>(dictionary->clone().release()); 21 return std::unique_ptr<Object>(new Object(std::unique_ptr<DictionaryValue>(dictionary)));
|