Lines Matching refs:key
138 const OSSymbol *key = OSSymbol::withString(*keys++);
141 if (!key)
144 if (!newObject || !setObject(key, newObject)) {
145 key->release();
149 key->release();
177 if (!setObject(dict->dictionary[i].key, dict->dictionary[i].value)) {
187 dictionary[i].key->taggedRetain(OSTypeID(OSCollection));
311 dictionary[i].key->taggedRelease(OSTypeID(OSCollection));
326 // if the key exists, replace the object
330 exists = (i < count) && (aKey == dictionary[i].key);
332 if ((exists = (aKey == dictionary[i].key))) break;
347 // add new key, possibly extending our capacity
357 dictionary[i].key = aKey;
372 // if the key exists, remove the object
376 exists = (i < count) && (aKey == dictionary[i].key);
378 if ((exists = (aKey == dictionary[i].key))) break;
389 oldEntry.key->taggedRelease(OSTypeID(OSCollection));
431 // if the key exists, return the object
435 exists = (i < count) && (aKey == dictionary[i].key);
437 if ((exists = (aKey == dictionary[i].key))) break;
541 obj = srcDict->getObject(dictionary[i].key);
582 *ret = (OSObject *) dictionary[index].key;
596 const OSSymbol *key = dictionary[i].key;
599 if (!key->metaCast("OSSymbol")) {
602 if (!s->addString("<key>")) return false;
603 const char *c = key->getCStringNoCopy();
616 if (!s->addXMLEndTag("key")) return false;