Lines Matching refs:string
14 // something like this, either use a double or make a string value containing
24 #include <string>
43 typedef std::map<std::string, Value*> ValueMap;
85 virtual bool GetAsString(std::string* out_value) const;
145 // Initializes a StringValue with a UTF-8 narrow character string.
146 explicit StringValue(const std::string& in_value);
154 std::string* GetString();
155 const std::string& GetString() const;
158 virtual bool GetAsString(std::string* out_value) const OVERRIDE;
165 std::string value_;
203 // are |std::string|s and should be UTF-8 encoded.
215 bool HasKey(const std::string& key) const;
235 void Set(const std::string& path, Value* in_value);
239 void SetBoolean(const std::string& path, bool in_value);
240 void SetInteger(const std::string& path, int in_value);
241 void SetDouble(const std::string& path, double in_value);
242 void SetString(const std::string& path, const std::string& in_value);
243 void SetString(const std::string& path, const string16& in_value);
247 void SetWithoutPathExpansion(const std::string& key, Value* in_value);
250 void SetBooleanWithoutPathExpansion(const std::string& path, bool in_value);
251 void SetIntegerWithoutPathExpansion(const std::string& path, int in_value);
252 void SetDoubleWithoutPathExpansion(const std::string& path, double in_value);
253 void SetStringWithoutPathExpansion(const std::string& path,
254 const std::string& in_value);
255 void SetStringWithoutPathExpansion(const std::string& path,
266 bool Get(const std::string& path, const Value** out_value) const;
267 bool Get(const std::string& path, Value** out_value);
273 bool GetBoolean(const std::string& path, bool* out_value) const;
274 bool GetInteger(const std::string& path, int* out_value) const;
277 bool GetDouble(const std::string& path, double* out_value) const;
278 bool GetString(const std::string& path, std::string* out_value) const;
279 bool GetString(const std::string& path, string16* out_value) const;
280 bool GetStringASCII(const std::string& path, std::string* out_value) const;
281 bool GetBinary(const std::string& path, const BinaryValue** out_value) const;
282 bool GetBinary(const std::string& path, BinaryValue** out_value);
283 bool GetDictionary(const std::string& path,
285 bool GetDictionary(const std::string& path, DictionaryValue** out_value);
286 bool GetList(const std::string& path, const ListValue** out_value) const;
287 bool GetList(const std::string& path, ListValue** out_value);
291 bool GetWithoutPathExpansion(const std::string& key,
293 bool GetWithoutPathExpansion(const std::string& key, Value** out_value);
294 bool GetBooleanWithoutPathExpansion(const std::string& key,
296 bool GetIntegerWithoutPathExpansion(const std::string& key,
298 bool GetDoubleWithoutPathExpansion(const std::string& key,
300 bool GetStringWithoutPathExpansion(const std::string& key,
301 std::string* out_value) const;
302 bool GetStringWithoutPathExpansion(const std::string& key,
305 const std::string& key,
307 bool GetDictionaryWithoutPathExpansion(const std::string& key,
309 bool GetListWithoutPathExpansion(const std::string& key,
311 bool GetListWithoutPathExpansion(const std::string& key,
320 virtual bool Remove(const std::string& path, scoped_ptr<Value>* out_value);
324 virtual bool RemoveWithoutPathExpansion(const std::string& key,
329 virtual bool RemovePath(const std::string& path,
356 const std::string& key() const { return it_->first; }
415 bool GetString(size_t index, std::string* out_value) const;
449 void AppendString(const std::string& in_value);
451 void AppendStrings(const std::vector<std::string>& in_values);
504 virtual Value* Deserialize(int* error_code, std::string* error_str) = 0;