Implement toLowerCase and toUpperCase
String manipulation functions and regular expressions require lowercase/uppercase conversion. See
http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.16
To implement them, we need some utilities in the core.
-
We need a variant, which converts a character to its uppercase described in (starting from Canonicalize part) http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.8
-
We also need variants, which converts characters to 1 or more upper/lowercase characters. E.g. the uppercase form of german sharp s is SS. This is needed for String.prototype.toUpperCase String.prototype.toLowerCase.
-
Fortunately LocaleCompare is platform dependent.
Could you raise the priority of implementing these functions in the core?
@zherczeg, these functions are not in our nearest aims, as we are concentrating on fixing test262 and improving the parser. We could implement them in three weeks. Maybe you can implement them roughly for now, supporting ASCII only for example, and we'll fix them later?
Ok, I will sketch the appropriate functions and you can implement them later.
@zherczeg, thank you.
@zherczeg, is this still valid?
Thanks for reminding me to this. This is very much valid.
#1575