bindings for to_locale_XXX_case (#523)

This commit is contained in:
T. Nagasawa
2018-07-20 23:03:29 +09:00
committed by Alex Crichton
parent cec12ae2d8
commit bec1c95b5c
2 changed files with 82 additions and 0 deletions

View File

@ -2156,6 +2156,20 @@ extern "C" {
#[wasm_bindgen(method, js_class = "String")]
pub fn substr(this: &JsString, start: i32, length: i32) -> JsString;
/// The toLocaleLowerCase() method returns the calling string value converted to lower case,
/// according to any locale-specific case mappings.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase
#[wasm_bindgen(method, js_class = "String", js_name = toLocaleLowerCase)]
pub fn to_locale_lower_case(this: &JsString, local: Option<String>) -> JsString;
/// The toLocaleUpperCase() method returns the calling string value converted to upper case,
/// according to any locale-specific case mappings.
///
/// https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase
#[wasm_bindgen(method, js_class = "String", js_name = toLocaleUpperCase)]
pub fn to_locale_upper_case(this: &JsString, local: Option<String>) -> JsString;
/// The `toLowerCase()` method returns the calling string value
/// converted to lower case.
///