Home
last modified time | relevance | path

Searched refs:dictionary (Results 1 – 25 of 781) sorted by relevance

12345678910>>...32

/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs315 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/
DMapFieldTest.cs316 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/node/test/fixtures/wpt/interfaces/
DWebCryptoAPI.idl20 dictionary Algorithm {
24 dictionary KeyAlgorithm {
92 dictionary RsaOtherPrimesInfo {
99 dictionary JsonWebKey {
127 dictionary CryptoKeyPair {
132 dictionary RsaKeyGenParams : Algorithm {
137 dictionary RsaHashedKeyGenParams : RsaKeyGenParams {
141 dictionary RsaKeyAlgorithm : KeyAlgorithm {
146 dictionary RsaHashedKeyAlgorithm : RsaKeyAlgorithm {
150 dictionary RsaHashedImportParams : Algorithm {
[all …]
Dstreams.idl25 dictionary ReadableStreamGetReaderOptions {
29 dictionary ReadableStreamIteratorOptions {
33 dictionary ReadableWritablePair {
38 dictionary StreamPipeOptions {
45 dictionary UnderlyingSource {
76 dictionary ReadableStreamDefaultReadResult {
90 dictionary ReadableStreamBYOBReadResult {
133 dictionary UnderlyingSink {
175 dictionary Transformer {
196 dictionary QueuingStrategy {
[all …]
/third_party/node/deps/v8/src/objects/
Dliteral-objects.cc97 IsolateT* isolate, Handle<NameDictionary> dictionary, Handle<Name> name, in DictionaryAddNoUpdateNextEnumerationIndex() argument
101 isolate, dictionary, name, value, details, entry_out); in DictionaryAddNoUpdateNextEnumerationIndex()
106 IsolateT* isolate, Handle<SwissNameDictionary> dictionary, in DictionaryAddNoUpdateNextEnumerationIndex() argument
111 return SwissNameDictionary::Add(isolate, dictionary, name, value, details); in DictionaryAddNoUpdateNextEnumerationIndex()
116 IsolateT* isolate, Handle<NumberDictionary> dictionary, uint32_t element, in DictionaryAddNoUpdateNextEnumerationIndex() argument
121 return NumberDictionary::Add(isolate, dictionary, element, value, details, in DictionaryAddNoUpdateNextEnumerationIndex()
126 void DictionaryUpdateMaxNumberKey(Handle<Dictionary> dictionary, in DictionaryUpdateMaxNumberKey() argument
133 void DictionaryUpdateMaxNumberKey(Handle<NumberDictionary> dictionary, in DictionaryUpdateMaxNumberKey() argument
135 dictionary->UpdateMaxNumberKey(element, Handle<JSObject>()); in DictionaryUpdateMaxNumberKey()
136 dictionary->set_requires_slow_elements(); in DictionaryUpdateMaxNumberKey()
[all …]
Ddictionary.h59 Isolate* isolate, Handle<Derived> dictionary, InternalIndex entry); in EXPORT_TEMPLATE_DECLARE()
63 Isolate* isolate, Handle<Derived> dictionary) { in EXPORT_TEMPLATE_DECLARE()
64 return DerivedHashTable::Shrink(isolate, dictionary); in EXPORT_TEMPLATE_DECLARE()
83 IsolateT* isolate, Handle<Derived> dictionary, Key key, in EXPORT_TEMPLATE_DECLARE()
88 Handle<Derived> dictionary); in EXPORT_TEMPLATE_DECLARE()
93 Handle<Derived> dictionary, in EXPORT_TEMPLATE_DECLARE()
155 static int NextEnumerationIndex(Isolate* isolate, Handle<Derived> dictionary); in EXPORT_TEMPLATE_DECLARE()
162 Handle<Derived> dictionary); in EXPORT_TEMPLATE_DECLARE()
166 IsolateT* isolate, Handle<Derived> dictionary, Key key, in EXPORT_TEMPLATE_DECLARE()
171 Isolate* isolate, Handle<Derived> dictionary, Key key, in EXPORT_TEMPLATE_DECLARE()
[all …]
Dlookup.cc366 Handle<GlobalDictionary> dictionary( in PrepareForDataProperty() local
369 Handle<PropertyCell> cell(dictionary->CellAt(isolate_, dictionary_entry()), in PrepareForDataProperty()
373 isolate(), dictionary, dictionary_entry(), value, property_details_); in PrepareForDataProperty()
518 Handle<GlobalDictionary> dictionary( in ReconfigureDataProperty() local
524 isolate(), dictionary, dictionary_entry(), value, details); in ReconfigureDataProperty()
531 Handle<SwissNameDictionary> dictionary( in ReconfigureDataProperty() local
533 dictionary->ValueAtPut(dictionary_entry(), *value); in ReconfigureDataProperty()
534 dictionary->DetailsAtPut(dictionary_entry(), details); in ReconfigureDataProperty()
536 dictionary->DetailsAt(dictionary_entry()).AsSmi()); in ReconfigureDataProperty()
539 Handle<NameDictionary> dictionary( in ReconfigureDataProperty() local
[all …]
/third_party/skia/third_party/externals/brotli/fetch-spec/
Dshared-brotli-fetch-spec.txt8 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/python/Doc/c-api/
Ddict.rst8 .. 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/
Dstatic_dict.c32 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 …]
Dhash.h137 const BrotliEncoderDictionary* dictionary, size_t len, size_t word_idx, in TestStaticDictionaryItem() argument
144 offset = dictionary->words->offsets_by_length[len] + len * word_idx; in TestStaticDictionaryItem()
150 FindMatchLengthWithLimit(data, &dictionary->words->data[offset], len); in TestStaticDictionaryItem()
151 if (matchlen + dictionary->cutoffTransformsCount <= len || matchlen == 0) { in TestStaticDictionaryItem()
157 (size_t)((dictionary->cutoffTransforms >> (cut * 6)) & 0x3F); in TestStaticDictionaryItem()
159 (transform_id << dictionary->words->size_bits_by_length[len]); in TestStaticDictionaryItem()
176 const BrotliEncoderDictionary* dictionary, in SearchInStaticDictionary() argument
188 if (dictionary->hash_table_lengths[key] != 0) { in SearchInStaticDictionary()
190 dictionary, dictionary->hash_table_lengths[key], in SearchInStaticDictionary()
191 dictionary->hash_table_words[key], data, in SearchInStaticDictionary()
/third_party/node/deps/brotli/c/enc/
Dstatic_dict.c32 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 …]
Dhash.h137 const BrotliEncoderDictionary* dictionary, size_t len, size_t word_idx, in TestStaticDictionaryItem() argument
144 offset = dictionary->words->offsets_by_length[len] + len * word_idx; in TestStaticDictionaryItem()
150 FindMatchLengthWithLimit(data, &dictionary->words->data[offset], len); in TestStaticDictionaryItem()
151 if (matchlen + dictionary->cutoffTransformsCount <= len || matchlen == 0) { in TestStaticDictionaryItem()
157 (size_t)((dictionary->cutoffTransforms >> (cut * 6)) & 0x3F); in TestStaticDictionaryItem()
159 (transform_id << dictionary->words->size_bits_by_length[len]); in TestStaticDictionaryItem()
176 const BrotliEncoderDictionary* dictionary, in SearchInStaticDictionary() argument
188 if (dictionary->hash_table_lengths[key] != 0) { in SearchInStaticDictionary()
190 dictionary, dictionary->hash_table_lengths[key], in SearchInStaticDictionary()
191 dictionary->hash_table_words[key], data, in SearchInStaticDictionary()
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/
DDictionaryData.java36 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/protobuf/python/google/protobuf/
Dservice_reflection.py70 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/
Dtest-zlib-dictionary.js54 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
Dtest-zlib-dictionary-fail.js34 assert.match(err.message, /Missing dictionary/);
41 const stream = zlib.createInflate({ dictionary: Buffer.from('fail') }); property
44 assert.match(err.message, /Bad dictionary/);
51 const stream = zlib.createInflateRaw({ dictionary: Buffer.from('fail') }); property
/third_party/skia/third_party/externals/brotli/scripts/dictionary/
Dstep-02-rfc-to-bin.py16 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/skia/third_party/externals/tint/fuzzers/
DBUILD.gn98 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/
DGPBDictionary.h83 - (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/
DObject_cpp.template15 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)));
/third_party/node/deps/v8/third_party/inspector_protocol/lib/
DObject_cpp.template15 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)));
/third_party/python/Doc/library/
Dpyclbr.rst25 Return a dictionary mapping module-level class names to class
38 Return a dictionary-based tree containing a function or class
40 ``def`` or ``class`` statement. The returned dictionary maps
42 objects are entered into the children dictionary of their parent. As
45 returned dictionary has a key ``'__path__'`` whose value is a list
94 A dictionary mapping names to descriptors for nested functions and
144 A dictionary mapping names to descriptors for nested functions and
161 A dictionary mapping method names to line numbers. This can be
162 derived from the newer children dictionary, but remains for
Drunpy.rst36 globals dictionary. The module's code is first located using the standard
43 that package is then executed and the resulting module globals dictionary
46 The optional dictionary argument *init_globals* may be used to pre-populate
47 the module's globals dictionary before the code is executed. The supplied
48 dictionary will not be modified. If any of the special global variables
49 below are defined in the supplied dictionary, those definitions are
54 dictionary before the module code is executed (Note that this is a
102 module globals dictionary. As with a script name supplied to the CPython
115 The optional dictionary argument *init_globals* may be used to pre-populate
116 the module's globals dictionary before the code is executed. The supplied
[all …]
/third_party/skia/third_party/externals/icu/source/data/brkitr/rules/
Dword_ja.txt57 # characters requiring dictionary break.
63 $dictionary = [$ComplexContext];
72 # TODO: check if handling of katakana in dictionary makes rules incorrect/void
102 # format char(s), or is not a CJK dictionary character.
255 # For dictionary-based break
256 $dictionary $dictionary;
274 # For dictionary-based break
275 $dictionary $dictionary;

12345678910>>...32