And an itoutf16() too, because why not. Okay, NOW for updating the labels.
This commit is contained in:
parent
8a1fe1f48a
commit
7c34acc2b7
|
@ -38,6 +38,7 @@ extern WCHAR *vstrf(const WCHAR *format, va_list ap);
|
|||
extern char *LFtoCRLF(const char *lfonly);
|
||||
extern void CRLFtoLF(const char *s);
|
||||
extern WCHAR *ftoutf16(double d);
|
||||
extern WCHAR *itoutf16(intmax_t i);
|
||||
|
||||
// debug.cpp
|
||||
// see http://stackoverflow.com/questions/14421656/is-there-widely-available-wide-character-variant-of-file
|
||||
|
|
|
@ -140,3 +140,14 @@ WCHAR *ftoutf16(double d)
|
|||
s = ss.str(); // to be safe
|
||||
return utf16dup(s.c_str());
|
||||
}
|
||||
|
||||
// to complement the above
|
||||
WCHAR *itoutf16(intmax_t i)
|
||||
{
|
||||
std::wostringstream ss;
|
||||
std::wstring s;
|
||||
|
||||
ss << i;
|
||||
s = ss.str(); // to be safe
|
||||
return utf16dup(s.c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue