diff options
Diffstat (limited to 'src/cxml.cc')
| -rw-r--r-- | src/cxml.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc index 78f75ee..f667584 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -331,6 +331,15 @@ locale_convert (string x) } template<> +unsigned int +locale_convert (string x) +{ + unsigned int y = 0; + sscanf (x.c_str(), "%u", &y); + return y; +} + +template<> long int locale_convert (string x) { @@ -372,6 +381,13 @@ cxml::raw_convert (string v) } template <> +unsigned int +cxml::raw_convert (string v) +{ + return locale_convert<unsigned int> (make_local(v)); +} + +template <> float cxml::raw_convert (string v) { |
