}
template<>
-long int
+long
dcp::locale_convert (string x, int, bool)
{
long int y = 0;
return y;
}
+template<>
+long long
+dcp::locale_convert (string x, int, bool)
+{
+ long long y = 0;
+ sscanf (x.c_str(), "%lld", &y);
+ return y;
+}
+
template<>
float
dcp::locale_convert (string x, int, bool)
locale_convert (std::string x, int, bool);
template <>
-long int
+long
+locale_convert (std::string x, int, bool);
+
+template <>
+long long
locale_convert (std::string x, int, bool);
template <>
return locale_convert<long> (make_local (v), precision, fixed);
}
+template <>
+long long
+dcp::raw_convert (string v, int precision, bool fixed)
+{
+ return locale_convert<long long> (make_local (v), precision, fixed);
+}
+
template <>
int
dcp::raw_convert (char const * v, int precision, bool fixed)
long
raw_convert (std::string v, int, bool);
+template <>
+long long
+raw_convert (std::string v, int, bool);
+
template <>
int
raw_convert (char const * v, int, bool);