Timeline for Convert to uppercase and lowercase without branching and comparisons
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 19, 2014 at 15:36 | comment | added | Somnium | @MartinBüttner Forgot about that fact. Then your solution is ok. | |
Aug 19, 2014 at 14:36 | comment | added | Martin Ender | @Somnium. Afaik ASCII contains only 128 characters. Everything else is extended ASCII which does not seem to be part of your spec. | |
Aug 19, 2014 at 14:17 | comment | added | Somnium |
Just realized that toUpper gives wrong value for n in range [194 - 245] and toLower for almost all n >= 130.
|
|
Aug 19, 2014 at 13:41 | history | edited | Martin Ender | CC BY-SA 3.0 |
added 6 characters in body
|
Aug 19, 2014 at 13:32 | history | answered | Martin Ender | CC BY-SA 3.0 |