It handles only the simple cases, where the conversion from lower to upper-case is reversible. There are some exceptions, for example in German where the lower-case "ß" is converted to uppercase "SS", but the uppercase "SS" can be either "ß" or "ss" in lower case depending on the word/context.
These are simple functions in a global namespace, not optimized for speed. Feel free to use/edit/optimize at will.
This is not heavily tested, so use at your own risk
Simple usage example:
Code: Select all
#include "case_conversion.h"
wxString s("äöüÄÖÜ áóéúí âôêûî");
wxLogMessage(s);
wxLogMessage( ToUpper(s) );
wxLogMessage( ToLower(s) );