using std::string;
using std::wstring;
+template<>
+string
+dcp::locale_convert (unsigned char x, int, bool)
+{
+ char buffer[64];
+ snprintf (buffer, sizeof(buffer), "%hhd", x);
+ return buffer;
+}
+
+template<>
+string
+dcp::locale_convert (unsigned short int x, int, bool)
+{
+ char buffer[64];
+ snprintf (buffer, sizeof(buffer), "%hd", x);
+ return buffer;
+}
+
template<>
string
dcp::locale_convert (int x, int, bool)
BOOST_STATIC_ASSERT (sizeof (Q) == 0);
}
+template <>
+std::string
+locale_convert (unsigned char x, int, bool);
+
+template <>
+std::string
+locale_convert (unsigned short int x, int, bool);
+
template <>
std::string
locale_convert (int x, int, bool);
return v;
}
+template <>
+string
+dcp::raw_convert (unsigned char v, int precision, bool fixed)
+{
+ return make_raw (locale_convert<string> (v, precision, fixed));
+}
+
+template <>
+string
+dcp::raw_convert (unsigned short int v, int precision, bool fixed)
+{
+ return make_raw (locale_convert<string> (v, precision, fixed));
+}
+
template <>
string
dcp::raw_convert (int v, int precision, bool fixed)
BOOST_STATIC_ASSERT (sizeof (Q) == 0);
}
+template <>
+std::string
+raw_convert (unsigned char v, int, bool);
+
+template <>
+std::string
+raw_convert (unsigned short int v, int, bool);
+
template <>
std::string
raw_convert (int v, int, bool);