From 3ad05d11dce653b33c6f0ea2d6cdba5a7e1bf4e5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 9 Oct 2018 14:53:10 +0100 Subject: More _convert functions. --- src/raw_convert.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/raw_convert.cc') diff --git a/src/raw_convert.cc b/src/raw_convert.cc index 35a57a52..e1b909c0 100644 --- a/src/raw_convert.cc +++ b/src/raw_convert.cc @@ -60,6 +60,20 @@ make_local (string v) return v; } +template <> +string +dcp::raw_convert (unsigned char v, int precision, bool fixed) +{ + return make_raw (locale_convert (v, precision, fixed)); +} + +template <> +string +dcp::raw_convert (unsigned short int v, int precision, bool fixed) +{ + return make_raw (locale_convert (v, precision, fixed)); +} + template <> string dcp::raw_convert (int v, int precision, bool fixed) -- cgit v1.2.3