Lines Matching defs:string

171 /// Remove the spaces at the begining and at the end of a given string.
173 /// @param str the string to remove leading and trailing white spaces from.
175 /// @return the string resulting from the removal of white space from @p str.
176 static string
177 trim_white_space(const string& str)
200 string name_;
205 priv(const string& name)
218 property::property(const string& name)
225 const string&
233 property::set_name(const string& name)
274 /// Converts the current property value to a string.
276 /// @return the string representation of the property value.
277 property_value::operator const string& () const
290 string content_;
295 priv(const string& c)
308 /// @param content the string content of the property value.
309 string_property_value::string_property_value(const string& content)
314 /// Setter of the content of the string property value.
318 string_property_value::set_content(const string& c)
321 /// Convert the string property value into a string.
323 /// @return the string contained in the string property value.
324 const string&
328 /// Conversion operator to a string, for the @ref
331 /// @return the string representing this string_property_value.
332 string_property_value::operator string() const
335 /// Test if a given property value is a string property value.
344 /// Test if a given property value is a string property value.
362 vector<string> values_;
363 string representation_;
368 priv(const vector<string>& vals)
382 list_property_value::list_property_value(const vector<string>& values)
395 const vector<string>&
403 list_property_value::set_content(const vector<string>& values)
409 /// Return a string representation of the @list_property_value.
411 /// @return the string representation.
412 const string&
417 for (vector<string>::const_iterator i = priv_->values_.begin();
459 string string_rep_;
495 /// Convert to the instance of @ref tuple_property_value to a string.
497 /// @return the string representation of the @ref tuple_property_value.
498 const string&
566 simple_property::simple_property(const string& name,
577 simple_property::simple_property(const string& name)
582 /// Getter for the string value of the property.
584 /// @return the string value of the property.
589 /// Setter for the string value of the property.
591 /// @param value the new string value of the property.
598 /// An empty value is either no value at all or an empty string value.
656 list_property::list_property(const string& name,
725 tuple_property::tuple_property(const string& name,
775 string name_;
782 priv(const string& name)
794 config::section::section(const string& name)
803 config::section::section(const string& name,
811 const string&
845 config::section::find_property(const string& prop_name) const
1185 read_property_name(string& name)
1214 read_function_name(string& name)
1242 read_function_argument(string& argument)
1283 string name;
1303 vector<string> arguments;
1309 string arg;
1364 /// Reads a string from the input stream.
1366 /// A string is just a contiguous set of characters that test
1370 /// Note that all escaped characters are suitable to be in a string.
1372 /// @return the string read.
1373 string
1385 string v;
1388 // If the current character is not suitable to be a in string,
1389 // then we reached the end of the string. Note that espaced
1390 // characters are always suitable to be a string.
1400 /// Read a string property value.
1410 string value = read_string();
1423 string str;
1424 vector<string> content;
1506 read_section_name(string& name)
1536 string name;
1594 string name;
1630 string path_;
1639 priv(const string& path,
1650 config::config(const string& path,
1663 const string&
1671 config::set_path(const string& path)
1727 read_sections(const string& path,
1765 read_config(const string& path,
1795 read_config(const string& path)
1806 /// Serialize the value of a property to a string.
1810 /// @return the string that represents the value of @p prop.
1811 static string
1814 string result;
1842 string value = write_property_value(prop);
1904 const string& path)
1943 const string& path)
1956 string name_;
1957 vector<string> arguments_;
1962 priv(const string& name,
1963 const vector<string>& arguments)
1975 function_call_expr::function_call_expr(const string& name,
1976 const vector<string>& args)
1983 const string&
1992 const vector<string>&
2001 vector<string>&
2025 /// @param input a string where to read the function call expression
2034 read_function_call_expr(const string& input,
2043 /// @param input a string where to read the function call expression
2049 read_function_call_expr(const string& input)