diff options
Diffstat (limited to 'js/src/jsstr.h')
-rw-r--r-- | js/src/jsstr.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/js/src/jsstr.h b/js/src/jsstr.h index 0e31276a86..cd2be4e59b 100644 --- a/js/src/jsstr.h +++ b/js/src/jsstr.h @@ -371,11 +371,24 @@ str_trimStart(JSContext* cx, unsigned argc, Value* vp); extern bool str_trimEnd(JSContext* cx, unsigned argc, Value* vp); -extern bool -str_toLocaleLowerCase(JSContext* cx, unsigned argc, Value* vp); +/** + * Returns the input string converted to lower case based on the language + * specific case mappings for the input locale. + * + * Usage: lowerCase = intl_toLocaleLowerCase(string, locale) + */ +extern MOZ_MUST_USE bool +intl_toLocaleLowerCase(JSContext* cx, unsigned argc, Value* vp); + +/** + * Returns the input string converted to upper case based on the language + * specific case mappings for the input locale. + * + * Usage: upperCase = intl_toLocaleUpperCase(string, locale) + */ +extern MOZ_MUST_USE bool +intl_toLocaleUpperCase(JSContext* cx, unsigned argc, Value* vp); -extern bool -str_toLocaleUpperCase(JSContext* cx, unsigned argc, Value* vp); extern bool str_normalize(JSContext* cx, unsigned argc, Value* vp); @@ -480,6 +493,12 @@ JSString* str_replaceAll_string_raw(JSContext* cx, HandleString string, HandleString pattern, HandleString replacement); +extern JSString* +StringToLowerCase(JSContext* cx, HandleLinearString string); + +extern JSString* +StringToUpperCase(JSContext* cx, HandleLinearString string); + extern bool StringConstructor(JSContext* cx, unsigned argc, Value* vp); |