summaryrefslogtreecommitdiff
path: root/src/locale_convert.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-12 12:53:29 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 12:53:29 +0100
commiteec238a778d631b8549c640178e1ab28b07505f4 (patch)
treeb8641a71ec97aa2ea57f2547816f100f4fce26dd /src/locale_convert.cc
parent06a5d6461590a49c5cc014c279279bc63a432a2a (diff)
Add more {raw,locale}_convert methods.
Diffstat (limited to 'src/locale_convert.cc')
-rw-r--r--src/locale_convert.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc
index 549a1041..3858006e 100644
--- a/src/locale_convert.cc
+++ b/src/locale_convert.cc
@@ -48,6 +48,15 @@ dcp::locale_convert (int x, int, bool)
template<>
string
+dcp::locale_convert (unsigned int x, int, bool)
+{
+ char buffer[64];
+ snprintf (buffer, sizeof(buffer), "%ud", x);
+ return buffer;
+}
+
+template<>
+string
dcp::locale_convert (int64_t x, int, bool)
{
char buffer[64];