Add set_font_file()
[libdcp.git] / src / raw_convert.cc
index e1b909c085d52c935387007a7bbefb8b8459e183..b4dcb5be92ec41eac566e73a3b8caafbeb49987c 100644 (file)
@@ -168,6 +168,20 @@ dcp::raw_convert (wchar_t const * v, 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)
@@ -182,6 +196,13 @@ dcp::raw_convert (string v, int precision, bool fixed)
        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)
@@ -189,6 +210,13 @@ dcp::raw_convert (string v, int precision, bool fixed)
        return locale_convert<long long> (make_local (v), precision, fixed);
 }
 
+template <>
+unsigned long long
+dcp::raw_convert (string v, int precision, bool fixed)
+{
+       return locale_convert<unsigned long long> (make_local (v), precision, fixed);
+}
+
 template <>
 int
 dcp::raw_convert (char const * v, int precision, bool fixed)