diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-09 14:53:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-09 14:53:10 +0100 |
| commit | 3ad05d11dce653b33c6f0ea2d6cdba5a7e1bf4e5 (patch) | |
| tree | 4ecb0f405f61e38e87049194f52b0980d06e18c6 /src/raw_convert.cc | |
| parent | 6ff5bc54fafcb9332609912514c287ac332ab7e5 (diff) | |
More _convert functions.
Diffstat (limited to 'src/raw_convert.cc')
| -rw-r--r-- | src/raw_convert.cc | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -62,6 +62,20 @@ make_local (string 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) { return make_raw (locale_convert<string> (v, precision, fixed)); |
