return y;
}
+template<>
+unsigned long
+dcp::locale_convert (string x, int, bool)
+{
+ unsigned long y = 0;
+#ifdef LIBDCP_WINDOWS
+ __mingw_sscanf (x.c_str(), "%lud", &y);
+#else
+ sscanf (x.c_str(), "%lud", &y);
+#endif
+ return y;
+}
+
template<>
long long
dcp::locale_convert (string x, int, bool)
long
locale_convert (std::string x, int, bool);
+template <>
+unsigned long
+locale_convert (std::string x, int, bool);
+
template <>
long long
locale_convert (std::string x, int, bool);
return locale_convert<long> (make_local (v), precision, fixed);
}
+template <>
+unsigned long
+dcp::raw_convert (string v, int precision, bool fixed)
+{
+ return locale_convert<unsigned long> (make_local (v), precision, fixed);
+}
+
template <>
long long
dcp::raw_convert (string v, int precision, bool fixed)
long
raw_convert (std::string v, int, bool);
+template <>
+unsigned long
+raw_convert (std::string v, int, bool);
+
template <>
long long
raw_convert (std::string v, int, bool);