I need to efficiently convert the code of a capital char to its correspondent code in lower case. ie: Convert the ascii code 97 to 65. Corresponding to "A" and "a"
An wrong answer may be just to add or sustract 32 to that integer. This would only work for an standard English keyboard.
Consider accented, non-English, double-byte, etc chars ie: Ñ=165 / ñ=164 , Ç=128 / ç=135
so far I am achieving it with this long detour:
var myCapitalCode=65; var myLowerCode = String.fromCharCode(myCapitalCode).toLowerCase().charCodeAt()