Lines Matching refs:out_value
425 bool Value::GetAsBoolean(bool* out_value) const { in GetAsBoolean()
426 if (out_value && is_bool()) { in GetAsBoolean()
427 *out_value = bool_value_; in GetAsBoolean()
433 bool Value::GetAsInteger(int* out_value) const { in GetAsInteger()
434 if (out_value && is_int()) { in GetAsInteger()
435 *out_value = int_value_; in GetAsInteger()
441 bool Value::GetAsString(std::string* out_value) const { in GetAsString()
442 if (out_value && is_string()) { in GetAsString()
443 *out_value = string_value_; in GetAsString()
449 bool Value::GetAsString(std::u16string* out_value) const { in GetAsString()
450 if (out_value && is_string()) { in GetAsString()
451 *out_value = UTF8ToUTF16(string_value_); in GetAsString()
457 bool Value::GetAsString(const Value** out_value) const { in GetAsString()
458 if (out_value && is_string()) { in GetAsString()
459 *out_value = static_cast<const Value*>(this); in GetAsString()
465 bool Value::GetAsString(std::string_view* out_value) const { in GetAsString()
466 if (out_value && is_string()) { in GetAsString()
467 *out_value = string_value_; in GetAsString()
473 bool Value::GetAsList(ListValue** out_value) { in GetAsList() argument
474 if (out_value && is_list()) { in GetAsList()
475 *out_value = static_cast<ListValue*>(this); in GetAsList()
481 bool Value::GetAsList(const ListValue** out_value) const { in GetAsList()
482 if (out_value && is_list()) { in GetAsList()
483 *out_value = static_cast<const ListValue*>(this); in GetAsList()
489 bool Value::GetAsDictionary(DictionaryValue** out_value) { in GetAsDictionary() argument
490 if (out_value && is_dict()) { in GetAsDictionary()
491 *out_value = static_cast<DictionaryValue*>(this); in GetAsDictionary()
497 bool Value::GetAsDictionary(const DictionaryValue** out_value) const { in GetAsDictionary()
498 if (out_value && is_dict()) { in GetAsDictionary()
499 *out_value = static_cast<const DictionaryValue*>(this); in GetAsDictionary()
749 const Value** out_value) const { in Get()
766 return current_dictionary->GetWithoutPathExpansion(current_path, out_value); in Get()
769 bool DictionaryValue::Get(std::string_view path, Value** out_value) { in Get() argument
771 path, const_cast<const Value**>(out_value)); in Get()
783 bool DictionaryValue::GetInteger(std::string_view path, int* out_value) const { in GetInteger()
788 return value->GetAsInteger(out_value); in GetInteger()
792 std::string* out_value) const { in GetString()
797 return value->GetAsString(out_value); in GetString()
801 std::u16string* out_value) const { in GetString()
806 return value->GetAsString(out_value); in GetString()
810 std::string* out_value) const { in GetStringASCII()
820 out_value->assign(out); in GetStringASCII()
825 const Value** out_value) const { in GetBinary()
831 if (out_value) in GetBinary()
832 *out_value = value; in GetBinary()
837 bool DictionaryValue::GetBinary(std::string_view path, Value** out_value) { in GetBinary() argument
839 path, const_cast<const Value**>(out_value)); in GetBinary()
843 const DictionaryValue** out_value) const { in GetDictionary()
849 if (out_value) in GetDictionary()
850 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
856 DictionaryValue** out_value) { in GetDictionary() argument
858 path, const_cast<const DictionaryValue**>(out_value)); in GetDictionary()
862 const ListValue** out_value) const { in GetList()
868 if (out_value) in GetList()
869 *out_value = static_cast<const ListValue*>(value); in GetList()
874 bool DictionaryValue::GetList(std::string_view path, ListValue** out_value) { in GetList() argument
876 path, const_cast<const ListValue**>(out_value)); in GetList()
880 const Value** out_value) const { in GetWithoutPathExpansion()
886 if (out_value) in GetWithoutPathExpansion()
887 *out_value = entry_iterator->second.get(); in GetWithoutPathExpansion()
892 Value** out_value) { in GetWithoutPathExpansion() argument
894 key, const_cast<const Value**>(out_value)); in GetWithoutPathExpansion()
898 bool* out_value) const { in GetBooleanWithoutPathExpansion()
903 return value->GetAsBoolean(out_value); in GetBooleanWithoutPathExpansion()
907 int* out_value) const { in GetIntegerWithoutPathExpansion()
912 return value->GetAsInteger(out_value); in GetIntegerWithoutPathExpansion()
917 std::string* out_value) const { in GetStringWithoutPathExpansion()
922 return value->GetAsString(out_value); in GetStringWithoutPathExpansion()
927 std::u16string* out_value) const { in GetStringWithoutPathExpansion()
932 return value->GetAsString(out_value); in GetStringWithoutPathExpansion()
937 const DictionaryValue** out_value) const { in GetDictionaryWithoutPathExpansion()
943 if (out_value) in GetDictionaryWithoutPathExpansion()
944 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionaryWithoutPathExpansion()
951 DictionaryValue** out_value) { in GetDictionaryWithoutPathExpansion() argument
955 key, const_cast<const DictionaryValue**>(out_value)); in GetDictionaryWithoutPathExpansion()
960 const ListValue** out_value) const { in GetListWithoutPathExpansion()
966 if (out_value) in GetListWithoutPathExpansion()
967 *out_value = static_cast<const ListValue*>(value); in GetListWithoutPathExpansion()
973 ListValue** out_value) { in GetListWithoutPathExpansion() argument
975 key, const_cast<const ListValue**>(out_value)); in GetListWithoutPathExpansion()
979 std::unique_ptr<Value>* out_value) { in Remove() argument
992 out_value); in Remove()
997 std::unique_ptr<Value>* out_value) { in RemoveWithoutPathExpansion() argument
1003 if (out_value) in RemoveWithoutPathExpansion()
1004 *out_value = std::move(entry_iterator->second); in RemoveWithoutPathExpansion()
1010 std::unique_ptr<Value>* out_value) { in RemovePath() argument
1015 return RemoveWithoutPathExpansion(path, out_value); in RemovePath()
1021 result = subdict->RemovePath(path.substr(delimiter_position + 1), out_value); in RemovePath()
1111 bool ListValue::Get(size_t index, const Value** out_value) const { in Get()
1115 if (out_value) in Get()
1116 *out_value = &list_[index]; in Get()
1121 bool ListValue::Get(size_t index, Value** out_value) { in Get() argument
1123 index, const_cast<const Value**>(out_value)); in Get()
1134 bool ListValue::GetInteger(size_t index, int* out_value) const { in GetInteger()
1139 return value->GetAsInteger(out_value); in GetInteger()
1142 bool ListValue::GetString(size_t index, std::string* out_value) const { in GetString()
1147 return value->GetAsString(out_value); in GetString()
1150 bool ListValue::GetString(size_t index, std::u16string* out_value) const { in GetString()
1155 return value->GetAsString(out_value); in GetString()
1159 const DictionaryValue** out_value) const { in GetDictionary()
1165 if (out_value) in GetDictionary()
1166 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
1171 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) { in GetDictionary() argument
1173 index, const_cast<const DictionaryValue**>(out_value)); in GetDictionary()
1176 bool ListValue::GetList(size_t index, const ListValue** out_value) const { in GetList()
1182 if (out_value) in GetList()
1183 *out_value = static_cast<const ListValue*>(value); in GetList()
1188 bool ListValue::GetList(size_t index, ListValue** out_value) { in GetList() argument
1190 index, const_cast<const ListValue**>(out_value)); in GetList()
1193 bool ListValue::Remove(size_t index, std::unique_ptr<Value>* out_value) { in Remove() argument
1197 if (out_value) in Remove()
1198 *out_value = std::make_unique<Value>(std::move(list_[index])); in Remove()
1218 std::unique_ptr<Value>* out_value) { in Erase() argument
1219 if (out_value) in Erase()
1220 *out_value = std::make_unique<Value>(std::move(*iter)); in Erase()