diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-02 19:22:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-02 19:22:14 +0100 |
| commit | 552534a2a264676a5a560bbcd9bdbf8c72910a7e (patch) | |
| tree | 373a1d1fd1eaf668b8f79138b62ddc9c41306f1c /src | |
| parent | 713a073cae011a108e6acb69daca73abf852783c (diff) | |
Rename a few bits.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cxml.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -66,7 +66,7 @@ public: * </Fred> * * string_child ("Jim") would return "42" - * numerical_child<int64_t> ("Jim") would return 42. + * number_child<int64_t> ("Jim") would return 42. * ...and so on. * * The methods not marked "optional" will throw an exception @@ -84,7 +84,7 @@ public: boost::optional<bool> optional_bool_child (std::string) const; template <class T> - T numerical_child (std::string c) const + T number_child (std::string c) const { std::string s = string_child (c); boost::erase_all (s, " "); @@ -92,7 +92,7 @@ public: } template <class T> - boost::optional<T> optional_numerical_child (std::string c) const + boost::optional<T> optional_number_child (std::string c) const { boost::optional<std::string> s = optional_string_child (c); if (!s) { @@ -123,7 +123,7 @@ public: boost::optional<bool> optional_bool_attribute (std::string) const; template <class T> - T numerical_attribute (std::string c) const + T number_attribute (std::string c) const { std::string s = string_attribute (c); boost::erase_all (s, " "); @@ -131,7 +131,7 @@ public: } template <class T> - boost::optional<T> optional_numerical_attribute (std::string c) const + boost::optional<T> optional_number_attribute (std::string c) const { boost::optional<std::string> s = optional_string_attribute (c); if (!s) { |
