projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a unit test for new events (see #10000)
[wxWidgets.git]
/
src
/
common
/
xlocale.cpp
diff --git
a/src/common/xlocale.cpp
b/src/common/xlocale.cpp
index 1f00c13c9865b74caad7ee0dd9a6f88c586cf4ff..b04288c64869562cb034d51c12ea097fc7842c79 100644
(file)
--- a/
src/common/xlocale.cpp
+++ b/
src/common/xlocale.cpp
@@
-71,12
+71,14
@@
wxXLocale& wxXLocale::GetCLocale()
{
if ( !gs_cLocale )
{
{
if ( !gs_cLocale )
{
- gs_cLocale = new wxXLocale(
wx_static_cast(wxXLocaleCTag *,
NULL));
+ gs_cLocale = new wxXLocale(
static_cast<wxXLocaleCTag *>(
NULL));
}
return *gs_cLocale;
}
}
return *gs_cLocale;
}
+#ifdef wxHAS_XLOCALE_SUPPORT
+
wxXLocale::wxXLocale(wxLanguage lang)
{
const wxLanguageInfo * const info = wxLocale::GetLanguageInfo(lang);
wxXLocale::wxXLocale(wxLanguage lang)
{
const wxLanguageInfo * const info = wxLocale::GetLanguageInfo(lang);
@@
-86,12
+88,10
@@
wxXLocale::wxXLocale(wxLanguage lang)
}
else
{
}
else
{
- Init(info->
CanonicalName
);
+ Init(info->
GetLocaleName().c_str()
);
}
}
}
}
-#ifdef wxHAS_XLOCALE_SUPPORT
-
#if wxCHECK_VISUALC_VERSION(8)
// ----------------------------------------------------------------------------
#if wxCHECK_VISUALC_VERSION(8)
// ----------------------------------------------------------------------------
@@
-199,11
+199,11
@@
GEN_ISFUNC(wxIsspace_l, CTYPE_SPACE)
GEN_ISFUNC(wxIsupper_l, CTYPE_UPPER)
GEN_ISFUNC(wxIsxdigit_l, CTYPE_XDIGIT)
GEN_ISFUNC(wxIsupper_l, CTYPE_UPPER)
GEN_ISFUNC(wxIsxdigit_l, CTYPE_XDIGIT)
-
wxUniChar
wxTolower_l(const wxUniChar& c, const wxXLocale& loc)
+
int
wxTolower_l(const wxUniChar& c, const wxXLocale& loc)
{
wxCHECK(loc.IsOk(), false);
{
wxCHECK(loc.IsOk(), false);
- if(CTYPE_TEST(c, CTYPE_UPPER))
+ if(CTYPE_TEST(c
.GetValue()
, CTYPE_UPPER))
{
return c - 'A' + 'a';
}
{
return c - 'A' + 'a';
}
@@
-211,11
+211,11
@@
wxUniChar wxTolower_l(const wxUniChar& c, const wxXLocale& loc)
return c;
}
return c;
}
-
wxUniChar
wxToupper_l(const wxUniChar& c, const wxXLocale& loc)
+
int
wxToupper_l(const wxUniChar& c, const wxXLocale& loc)
{
wxCHECK(loc.IsOk(), false);
{
wxCHECK(loc.IsOk(), false);
- if(CTYPE_TEST(c, CTYPE_LOWER))
+ if(CTYPE_TEST(c
.GetValue()
, CTYPE_LOWER))
{
return c - 'a' + 'A';
}
{
return c - 'a' + 'A';
}