Patch level : 10.0 109
Files correlati : Ricompilazione Demo : [ ] Commento : Riportata la versione 3.2 1208 git-svn-id: svn://10.65.10.50/trunk@17107 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
45b73d97fe
commit
8d4d901c4d
@ -1017,3 +1017,10 @@ void OsWin32_NumberFormat(char* str, int size)
|
||||
::GetNumberFormat(LOCALE_USER_DEFAULT, 0, str, NULL, buf, sizeof(buf));
|
||||
wxStrncpy(str, buf, size);
|
||||
}
|
||||
|
||||
void OsWin32_NumberFormat(char* str, int size)
|
||||
{
|
||||
char buf[80];
|
||||
::GetNumberFormat(LOCALE_USER_DEFAULT, 0, str, NULL, buf, sizeof(buf));
|
||||
wxStrncpy(str, buf, size);
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ long OsWin32_CloseChildren(unsigned int parent);
|
||||
void OsWin32_NumberFormat(char* str, int size);
|
||||
|
||||
void OsWin32_UpdateWindow(unsigned int handle);
|
||||
void OsWin32_NumberFormat(char* str, int size);
|
||||
|
||||
int OsWin32_Help(WXHWND handle, const char* hlp, unsigned int cmd, const char* topic);
|
||||
bool OsWin32_TestNetworkVersion();
|
||||
|
@ -3388,6 +3388,27 @@ char* xvt_str_number_format(char* str, int size)
|
||||
return str;
|
||||
}
|
||||
|
||||
char* xvt_str_number_format(char* str, int size)
|
||||
{
|
||||
#ifdef WIN32
|
||||
OsWin32_NumberFormat(str, size);
|
||||
#else
|
||||
wxString txt;
|
||||
for (const char* s = str; *s; s++)
|
||||
{
|
||||
if (isdigit(*s))
|
||||
txt << *s;
|
||||
else
|
||||
{
|
||||
if (*s == '.')
|
||||
txt << ',';
|
||||
}
|
||||
}
|
||||
wxStrncpy(str, txt, size);
|
||||
#endif
|
||||
return str;
|
||||
}
|
||||
|
||||
BOOLEAN xvt_str_match(const char* mbs, const char *pat, BOOLEAN case_sensitive)
|
||||
{
|
||||
/*
|
||||
|
@ -323,6 +323,7 @@ XVTDLL double xvt_str_fuzzy_compare (const char* s1, const char* s2);
|
||||
XVTDLL double xvt_str_fuzzy_compare_ignoring_case(const char* s1, const char* s2);
|
||||
XVTDLL void xvt_str_make_upper(char* str);
|
||||
XVTDLL void xvt_str_make_lower(char* str);
|
||||
XVTDLL char* xvt_str_number_format(char* str, int size);
|
||||
XVTDLL BOOLEAN xvt_str_md5(const char* instr, char* outstr32);
|
||||
XVTDLL char* xvt_str_number_format(char* str, int size);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user