Beispiel #1
0
static Dictionary * DictionarySet(Dictionary * d, const char * key, Type value) {
	if (key == NULL || key[0] == 0) {
		return d;
	}

	if (value == NULL) {
		DictionaryRemove(d, key);
	} else {
		DictionaryAddPair(d, KVPairNew(key, value, d->retainer));
	}

	return d;
}
Beispiel #2
0
char Remove(char* key){
	return DictionaryRemove(dictionary, key);
}