diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-23 22:10:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-23 22:10:04 +0000 |
| commit | a932f566c111968138159e0720c46e9c1c497d93 (patch) | |
| tree | 9a7cb0e7ee70bfc8dd11461bbcaf2eae6d7bab2c /src/locale_convert.cc | |
| parent | 928db1f6f5817f01c1bdc0eb00d111b9d1c6ccdb (diff) | |
Add another conversion.
Diffstat (limited to 'src/locale_convert.cc')
| -rw-r--r-- | src/locale_convert.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 8f3073c..4264217 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -54,6 +54,19 @@ sub::locale_convert (unsigned long int x, int, bool) template<> string +sub::locale_convert (unsigned long long x, int, bool) +{ + char buffer[64]; +#ifdef LIBSUB_WINDOWS + __mingw_snprintf (buffer, sizeof(buffer), "%lld", x); +#else + snprintf (buffer, sizeof(buffer), "%lld", x); +#endif + return buffer; +} + +template<> +string sub::locale_convert (string x, int, bool) { return x; |
