mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
20 lines
668 B
C
20 lines
668 B
C
#ifndef _src_support_Core_h_
|
|
#define _src_support_Core_h_
|
|
|
|
const char* GetSystemDecimalSeparator()
|
|
{
|
|
#ifdef PLATFORM_WIN32
|
|
return ~GetWinRegString("sDecimal", "Control Panel\\International", HKEY_CURRENT_USER).Mid(0, 1);
|
|
#else
|
|
return '.';
|
|
#endif
|
|
}
|
|
|
|
double MyScanDouble(const char *p, const char **endptr = NULL);
|
|
double MyScanDouble(const wchar *p, const wchar **endptr = NULL);
|
|
String MyFormatDouble(double d, int digits=10, int flags=0, int pad_exp=0);
|
|
String MyFormatDoubleFix(double d, int digits, int flags);
|
|
String MyFormatDoubleExp(double d, int digits, int flags, int fill_exp);
|
|
|
|
int MMsToPoints(int m) { return m*2363/100; }
|
|
#endif
|