summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 82e4bc3..78f75ee 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -331,6 +331,15 @@ locale_convert (string x)
}
template<>
+long int
+locale_convert (string x)
+{
+ long int y = 0;
+ sscanf (x.c_str(), "%ld", &y);
+ return y;
+}
+
+template<>
float
locale_convert (string x)
{
@@ -356,6 +365,13 @@ cxml::raw_convert (string v)
}
template <>
+long int
+cxml::raw_convert (string v)
+{
+ return locale_convert<long int> (make_local(v));
+}
+
+template <>
float
cxml::raw_convert (string v)
{