More _convert functions.
[libdcp.git] / src / locale_convert.cc
index 133c8a3a2e0b00af9b8e24ea768b3afe897c0d11..0f0b5fa2311bda699d23e94ad92e17793d7710f3 100644 (file)
 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)