Lines Matching defs:key

164   // |FindKey| looks up |key| in the underlying dictionary. If found, it returns
172 Value* FindKey(std::string_view key);
173 const Value* FindKey(std::string_view key) const;
184 Value* FindKeyOfType(std::string_view key, Type type);
185 const Value* FindKeyOfType(std::string_view key, Type type) const;
187 // |SetKey| looks up |key| in the underlying dictionary and sets the mapped
188 // value to |value|. If |key| could not be found, a new element is inserted.
194 Value* SetKey(std::string_view key, Value value);
196 Value* SetKey(std::string&& key, Value value);
198 Value* SetKey(const char* key, Value value);
200 // This attempts to remove the value associated with |key|. In case of
201 // failure, e.g. the key does not exist, |false| is returned and the
202 // underlying dictionary is not changed. In case of success, |key| is deleted
208 bool RemoveKey(std::string_view key);
371 // DictionaryValue provides a key-value dictionary with (optional) "path"
386 // Returns true if the current dictionary has a value for the given key.
387 // DEPRECATED, use Value::FindKey(key) instead.
388 bool HasKey(std::string_view key) const;
400 // A path has the form "<key>" or "<key>.<key>.[...]", where "." indexes
402 // within a key, but there are no other restrictions on keys.
403 // If the key at any step of the way doesn't exist, or exists but isn't
429 // DEPRECATED, use Value::SetKey(key, value) instead.
430 Value* SetWithoutPathExpansion(std::string_view key,
434 // A path has the form "<key>" or "<key>.<key>.[...]", where "." indexes
436 // successfully, the value for the last key in the path will be returned
476 // DEPRECATED, use Value::FindKey(key) instead.
477 bool GetWithoutPathExpansion(std::string_view key,
479 // DEPRECATED, use Value::FindKey(key) instead.
480 bool GetWithoutPathExpansion(std::string_view key, Value** out_value);
481 // DEPRECATED, use Value::FindKey(key) and Value::GetBool() instead.
482 bool GetBooleanWithoutPathExpansion(std::string_view key,
484 // DEPRECATED, use Value::FindKey(key) and Value::GetInt() instead.
485 bool GetIntegerWithoutPathExpansion(std::string_view key,
487 // DEPRECATED, use Value::FindKey(key) and Value::GetString() instead.
488 bool GetStringWithoutPathExpansion(std::string_view key,
490 // DEPRECATED, use Value::FindKey(key) and Value::GetString() instead.
491 bool GetStringWithoutPathExpansion(std::string_view key,
493 // DEPRECATED, use Value::FindKey(key) and Value's Dictionary API instead.
495 std::string_view key,
497 // DEPRECATED, use Value::FindKey(key) and Value's Dictionary API instead.
498 bool GetDictionaryWithoutPathExpansion(std::string_view key,
500 // DEPRECATED, use Value::FindKey(key) and Value::GetList() instead.
501 bool GetListWithoutPathExpansion(std::string_view key,
503 // DEPRECATED, use Value::FindKey(key) and Value::GetList() instead.
504 bool GetListWithoutPathExpansion(std::string_view key, ListValue** out_value);
507 // of its child dictionaries, if the path is more than just a local key).
517 // DEPRECATED, use Value::RemoveKey(key) instead.
518 bool RemoveWithoutPathExpansion(std::string_view key,
533 // sub-dictionaries will be merged as well. In case of key collisions, the
554 const std::string& key() const { return it_->first; }