X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flocale_convert.h;h=aaf0dd6eaaff388c985192849b4af52c0ab40ab8;hb=314060f975dc9806f49ec8bbb1c11041a2ac111f;hp=4c97784686390182bb75bd8fdce76bc7baf42e41;hpb=943af65e7833ef96bcfcfa957f1703d3a425c9ff;p=libdcp.git diff --git a/src/locale_convert.h b/src/locale_convert.h index 4c977846..aaf0dd6e 100644 --- a/src/locale_convert.h +++ b/src/locale_convert.h @@ -51,6 +51,14 @@ locale_convert (Q x, int precision = 16, bool fixed = false) 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); @@ -95,6 +103,10 @@ template <> std::string locale_convert (char const * x, int, bool); +template <> +std::string +locale_convert (wchar_t const * x, int, bool); + template <> std::string locale_convert (char x, int, bool); @@ -103,12 +115,36 @@ template <> 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); template <> -int64_t +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); + +template <> +unsigned long long locale_convert (std::string x, int, bool); template <>