return x.string();
}
+template<>
+unsigned char
+dcp::locale_convert (string x, int, bool)
+{
+ unsigned char y = 0;
+ sscanf (x.c_str(), "%hhu", &y);
+ return y;
+}
+
+template<>
+unsigned short int
+dcp::locale_convert (string x, int, bool)
+{
+ unsigned short int y = 0;
+ sscanf (x.c_str(), "%hu", &y);
+ return y;
+}
+
+template<>
+unsigned int
+dcp::locale_convert (string x, int, bool)
+{
+ int y = 0;
+ sscanf (x.c_str(), "%u", &y);
+ return y;
+}
+
template<>
int
dcp::locale_convert (string x, int, bool)
std::string
locale_convert (boost::filesystem::path x, int, bool);
+template <>
+unsigned char
+locale_convert (std::string x, int, bool);
+
+template <>
+unsigned short int
+locale_convert (std::string x, int, bool);
+
+template <>
+unsigned int
+locale_convert (std::string x, int, bool);
+
template <>
int
locale_convert (std::string x, int, bool);
return string (w.begin(), w.end());
}
+template <>
+unsigned char
+dcp::raw_convert (std::string v, int precision, bool fixed)
+{
+ return locale_convert<unsigned char> (make_local (v), precision, fixed);
+}
+
+template <>
+unsigned short int
+dcp::raw_convert (std::string v, int precision, bool fixed)
+{
+ return locale_convert<unsigned short int> (make_local (v), precision, fixed);
+}
+
template <>
int
dcp::raw_convert (string v, int precision, bool fixed)
std::string
raw_convert (char v, int, bool);
+template <>
+unsigned char
+raw_convert (std::string v, int, bool);
+
+template <>
+unsigned short int
+raw_convert (std::string v, int, bool);
+
template <>
int
raw_convert (std::string v, int, bool);