Add wxIsascii() function and use it instead of isascii() in our code.
isascii() is non-ANSI and is not available under all platforms. While we currently define it ourselves in wx/wxcrtbase.h in this case, it's not a good idea as this can't be easily done correctly for all platforms so start transitioning away from using isascii() by adding wxIsascii() and using it in our own code. The only remaining occurrences of isascii() are in Scintilla code which we probably don't want to modify. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -323,7 +323,9 @@ wxString wxAcceleratorEntry::ToString() const
|
||||
// must be a simple key
|
||||
if (
|
||||
#if !wxUSE_UNICODE
|
||||
isascii(code) &&
|
||||
// we can't call wxIsalnum() for non-ASCII characters in ASCII
|
||||
// build as they're only defined for the ASCII range (or EOF)
|
||||
wxIsascii(code) &&
|
||||
#endif // ANSI
|
||||
wxIsalnum(code) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user