HomeSort by relevance Sort by last modified time
    Searched refs:dict (Results 1 - 25 of 1670) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/ltrace/
value_dict.h 35 /* Initialize DICT. */
36 void val_dict_init(struct value_dict *dict);
45 int val_dict_push_next(struct value_dict *dict, struct value *val);
48 size_t val_dict_count(struct value_dict *dict);
53 int val_dict_push_named(struct value_dict *dict, struct value *val,
58 struct value *val_dict_get_num(struct value_dict *dict, size_t num);
61 struct value *val_dict_get_name(struct value_dict *dict, const char *name);
63 /* Destroy the dictionary and all the values in it. Note that DICT
65 void val_dict_destroy(struct value_dict *dict);
dict.c 24 #include "dict.h"
32 bitp(struct dict *dict, size_t n)
34 return VECT_ELEMENT(&dict->status, struct status_bits, n);
38 dict_init(struct dict *dict,
47 vect_init(&dict->keys, key_size);
48 vect_init(&dict->values, value_size);
49 VECT_INIT(&dict->status, struct status_bits);
50 dict->size = 0
    [all...]
value_dict.c 36 val_dict_init(struct value_dict *dict)
38 VECT_INIT(&dict->numbered, struct value);
39 VECT_INIT(&dict->named, struct named_value);
94 val_dict_push_next(struct value_dict *dict, struct value *val)
96 return VECT_PUSHBACK(&dict->numbered, val);
100 val_dict_push_named(struct value_dict *dict, struct value *val,
106 if (VECT_PUSHBACK(&dict->named, &element) < 0) {
115 val_dict_count(struct value_dict *dict)
117 return vect_size(&dict->numbered);
121 val_dict_get_num(struct value_dict *dict, size_t num
    [all...]
  /external/libxml2/
dict.c 2 * dict.c: dictionary of reusable strings, just used to avoid allocation
36 * Note2: the fast function used for a small dict won't protect very
56 #include <libxml/dict.h>
70 #define xmlDictComputeKey(dict, name, len) \
71 (((dict)->size == MIN_DICT_SIZE) ? \
72 xmlDictComputeFastKey(name, len, (dict)->seed) : \
73 xmlDictComputeBigKey(name, len, (dict)->seed))
75 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \
77 (xmlDictComputeKey(dict, name, len)) : \
78 (((dict)->size == MIN_DICT_SIZE) ?
118 struct _xmlDictEntry *dict; member in struct:_xmlDict
540 xmlDictPtr dict; local
587 xmlDictPtr dict = xmlDictCreate(); local
    [all...]
  /external/skia/tests/
RefDictTest.cpp 20 SkRefDict dict; local
22 REPORTER_ASSERT(reporter, nullptr == dict.find(nullptr));
23 REPORTER_ASSERT(reporter, nullptr == dict.find("foo"));
24 REPORTER_ASSERT(reporter, nullptr == dict.find("bar"));
26 dict.set("foo", &data0);
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
30 dict.set("foo", &data0);
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
34 dict.set("foo", &data1);
35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"))
    [all...]
  /packages/inputmethods/LatinIME/native/dicttoolkit/tests/offdevice_intermediate_dict/
offdevice_intermediate_dict_test.cpp 44 OffdeviceIntermediateDict dict = OffdeviceIntermediateDict( local
46 EXPECT_EQ(nullptr, dict.getWordProperty(CodePointArrayView()));
49 EXPECT_TRUE(dict.addWord(wordProperty0));
50 EXPECT_NE(nullptr, dict.getWordProperty(wordProperty0.getCodePoints()));
53 EXPECT_TRUE(dict.addWord(wordProperty1));
54 EXPECT_NE(nullptr, dict.getWordProperty(wordProperty1.getCodePoints()));
57 EXPECT_TRUE(dict.addWord(wordProperty2));
58 EXPECT_NE(nullptr, dict.getWordProperty(wordProperty2.getCodePoints()));
61 EXPECT_TRUE(dict.addWord(wordProperty3));
62 EXPECT_NE(nullptr, dict.getWordProperty(wordProperty3.getCodePoints()))
    [all...]
  /device/google/marlin/dataservices/datatop/src/
datatop_str.h 60 struct dt_procdict *dict);
62 int dt_find_dict_idx(const char *str, struct dt_procdict *dict);
65 struct dt_procdict *dict);
67 void dt_parse_for_prefix(char *line1, int len1, struct dt_procdict *dict);
69 int dt_single_line_parse(char *line1, int len1, struct dt_procdict *dict);
datatop_str.c 89 * @param dict Dictionary that keys and values are added to.
93 int len2, struct dt_procdict *dict)
100 if (line1 == 0 || line2 == 0 || dict == 0)
106 dict->key[k] = &line1[i+1];
116 dict->val[k] = &line2[i+1];
126 dict->max = j;
138 * @param dict Dictionary prefix is being added to.
140 void dt_parse_for_prefix(char *line1, int len1, struct dt_procdict *dict)
147 if (line1 == 0 || dict == 0)
153 dict->key[k] = &line1[i+1]
    [all...]
  /external/libxml2/os400/
transcode.h 13 #include <libxml/dict.h>
16 XMLPUBFUN void xmlZapDict(xmlDictPtr * dict);
18 const char * encoding, xmlDictPtr * dict,
21 const char * encoding, xmlDictPtr * dict);
23 const char * encoding, xmlDictPtr * dict);
25 const char * encoding, xmlDictPtr * dict);
40 XMLPUBFUN const char * xmlVasprintf(xmlDictPtr * dict, const char * encoding,
transcode.c 15 #include "libxml/dict.h"
24 xmlZapDict(xmlDictPtr * dict)
27 if (dict && *dict) {
28 xmlDictFree(*dict);
29 *dict = (xmlDictPtr) NULL;
47 xmlDictPtr * dict, void (*freeproc)(const void *))
71 if (!l && dict)
74 if (dict && !*dict)
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
BinaryDictEncoderFlattenTreeTests.java 34 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), local
36 dict.add("foo", new ProbabilityInfo(1), null, false /* isNotAWord */,
38 dict.add("fta", new ProbabilityInfo(1), null, false /* isNotAWord */,
40 dict.add("ftb", new ProbabilityInfo(1), null, false /* isNotAWord */,
42 dict.add("bar", new ProbabilityInfo(1), null, false /* isNotAWord */,
44 dict.add("fool", new ProbabilityInfo(1), null, false /* isNotAWord */,
47 BinaryDictEncoderUtils.flattenTree(dict.mRootNodeArray);
  /external/libweave/src/
config.cc 61 void MigrateFromV0(base::DictionaryValue* dict) {
63 if (dict->GetString(config_keys::kCloudId, &cloud_id) && !cloud_id.empty())
66 if (dict->Remove(config_keys::kDeviceId, &tmp))
67 dict->Set(config_keys::kCloudId, std::move(tmp));
157 base::DictionaryValue* dict = nullptr; local
158 if (!value || !value->GetAsDictionary(&dict)) {
164 dict->GetInteger(config_keys::kVersion, &loaded_version);
173 MigrateFromV0(dict);
179 if (dict->GetString(config_keys::kClientId, &tmp))
182 if (dict->GetString(config_keys::kClientSecret, &tmp)
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/gslib/
parallelism_framework_util.py 30 """Initializes the dict.
37 self.dict = manager.dict()
40 self.dict = {}
44 return self.dict[key]
48 self.dict[key] = value
53 return self.dict.get(key, default_value)
57 del self.dict[key]
63 dict[key] = dict.get(key, default_value) + inc
    [all...]
  /external/libxml2/include/libxml/
dict.h 39 xmlDictSetLimit (xmlDictPtr dict,
42 xmlDictGetUsage (xmlDictPtr dict);
46 xmlDictReference(xmlDictPtr dict);
48 xmlDictFree (xmlDictPtr dict);
54 xmlDictLookup (xmlDictPtr dict,
58 xmlDictExists (xmlDictPtr dict,
62 xmlDictQLookup (xmlDictPtr dict,
66 xmlDictOwns (xmlDictPtr dict,
69 xmlDictSize (xmlDictPtr dict);
  /art/tools/checker/common/
immutables.py 15 class ImmutableDict(dict):
24 dict.__setitem__(newDict, key, value)
  /external/e2fsprogs/e2fsck/
dict.c 17 * $Id: dict.c,v 1.40.2.7 2000/11/13 01:36:44 kaz Exp $
33 #include "dict.h"
36 static const char rcsid[] = "$Id: dict.c,v 1.40.2.7 2000/11/13 01:36:44 kaz Exp $";
43 * program which uses dict to define, for instance, a macro called ``parent''.
138 static void free_nodes(dict_t *dict, dnode_t *node, dnode_t *nil)
142 free_nodes(dict, node->left, nil);
143 free_nodes(dict, node->right, nil);
144 dict->freenode(node, dict->context);
156 static int verify_bintree(dict_t *dict)
1059 dict_t *dict = load->dictptr; local
1083 dict_t *dict = load->dictptr; local
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_pep292.py 26 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
28 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
32 d = dict(who='tim', what='ham', meal='dinner')
35 dict(who='tim', what='ham'))
40 eq(s.substitute(dict(who='tim', what='ham')),
43 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
48 d = dict(foo='baz')
55 d = dict(count=7)
64 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}'
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_pep292.py 26 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
28 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
32 d = dict(who='tim', what='ham', meal='dinner')
35 dict(who='tim', what='ham'))
40 eq(s.substitute(dict(who='tim', what='ham')),
43 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
48 d = dict(foo='baz')
55 d = dict(count=7)
64 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}'
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_pep292.py 26 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
28 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
32 d = dict(who='tim', what='ham', meal='dinner')
35 dict(who='tim', what='ham'))
40 eq(s.substitute(dict(who='tim', what='ham')),
43 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
48 d = dict(foo='baz')
55 d = dict(count=7)
64 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}'
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_pep292.py 26 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
28 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
32 d = dict(who='tim', what='ham', meal='dinner')
35 dict(who='tim', what='ham'))
40 eq(s.substitute(dict(who='tim', what='ham')),
43 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
48 d = dict(foo='baz')
55 d = dict(count=7)
64 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}'
    [all...]
  /external/lzma/xz-embedded/
xz_dec_lzma2.c 264 struct dictionary dict; member in struct:xz_dec_lzma2
286 static void dict_reset(struct dictionary *dict, struct xz_buf *b)
288 if (DEC_IS_SINGLE(dict->mode)) {
289 dict->buf = b->out + b->out_pos;
290 dict->end = b->out_size - b->out_pos;
293 dict->start = 0;
294 dict->pos = 0;
295 dict->limit = 0;
296 dict->full = 0;
300 static void dict_limit(struct dictionary *dict, size_t out_max
    [all...]
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
OpenWnnEngineEN.java 263 WnnDictionary dict = mDictionary; local
264 dict.setInUseState( true );
266 dict.clearDictionary();
267 dict.setDictionary(0, 400, 550);
269 dict.setDictionary(1, 400, 550);
272 dict.setDictionary(2, 400, 550);
274 dict.setDictionary(WnnDictionary.INDEX_USER_DICTIONARY, FREQ_USER, FREQ_USER);
275 dict.setDictionary(WnnDictionary.INDEX_LEARN_DICTIONARY, FREQ_LEARN, FREQ_LEARN);
278 dict.searchWord(WnnDictionary.SEARCH_PREFIX, WnnDictionary.ORDER_BY_FREQUENCY, mSearchKey);
319 WnnDictionary dict = mDictionary local
328 WnnDictionary dict = mDictionary; local
346 WnnDictionary dict = mDictionary; local
371 WnnDictionary dict = mDictionary; local
    [all...]
  /external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
config.py 31 class Config(dict):
76 assert isinstance(values, dict)
81 assert isinstance(defaults, dict)
111 return dict.__getitem__(self, module)
123 assert isinstance(values, dict), 'Module configuration must be a dict.'
124 dict.__setitem__(self, module, SubConfig(module, values))
128 returns an empty dict if the module is not configured.
134 set, returns an empty dict.
141 return dict.get(self, module, default
    [all...]
  /external/google-breakpad/src/common/
simple_string_dictionary_unittest.cc 65 SimpleStringDictionary dict; local
68 dict.SetKeyValue("key1", "value1");
69 dict.SetKeyValue("key2", "value2");
70 dict.SetKeyValue("key3", "value3");
72 EXPECT_NE(dict.GetValueForKey("key1"), "value1");
73 EXPECT_NE(dict.GetValueForKey("key2"), "value2");
74 EXPECT_NE(dict.GetValueForKey("key3"), "value3");
75 EXPECT_EQ(dict.GetCount(), 3u);
77 EXPECT_FALSE(dict.GetValueForKey("key4"));
80 dict.RemoveKey("key3")
128 SimpleStringDictionary* dict = new SimpleStringDictionary(); local
    [all...]
  /external/antlr/antlr-3.4/runtime/ObjC/Framework/
ArrayIterator.h 59 + (ArrayIterator *) newIteratorForDictKey:(NSDictionary *)dict;
60 + (ArrayIterator *) newIteratorForDictObj:(NSDictionary *)dict;
63 - (id) initWithDictKey:(NSDictionary *)dict;
64 - (id) initWithDictObj:(NSDictionary *)dict;

Completed in 446 milliseconds

1 2 3 4 5 6 7 8 91011>>