Open skvadrik opened 9 years ago
Note: cannot use 'towlower/towupper' standard functions as they depend on locale being in use. The only standard locales are "C"
and ""
(default): users may not have the appropriate locale. We need to do this manually.
You could implement workaround - allow to specify locale via new command line param, and generate code for this locale only, with all char codes hardcoded.
A good workaround in case people start complaining about the issue.
Or should we wait some two decades until everyone has Unicode locale. :D
For non-ASCII character sets (encodings UTF-8, UTF-16, UTF-32, UCS-2 and EBCDIC) re2c should treat uppercase/lowercase letters differently.
The following example should match uppercase and lowercase letter 'ы':
re2c generates code that matches only lowercase letter: