この記事は編集レビューを必要としています。ぜひご協力ください。
この翻訳は不完全です。英語から この記事を翻訳 してください。
概要
任意のロケール固有のケースマッピングに従って、参照文字列の値を小文字に変換して返します。
構文
str.toLocaleLowerCase()
説明
toLocaleLowerCase()
メソッドは任意のロケール固有のケースマッピングに従って小文字に変換された文字列の値を返します。toLocaleLowerCase()
は文字列自体の値には影響を与えません。ほとんどの場合に、toLowerCase()
と同じ結果になりますが、トルコ語のような、Unicodeのデフォルトケースマッピングに従わないケースマッピングの一部のローケルに対して、違った結果になるかもしれません。
例
例: toLocaleLowerCase()
を使う
console.log('ALPHABET'.toLocaleLowerCase()); // 'alphabet'
仕様
仕様 | 状況 | コメント |
---|---|---|
ECMAScript 3rd Edition. | Standard | Initial definition. Implemented in JavaScript 1.2. |
ECMAScript 5.1 (ECMA-262) The definition of 'String.prototype.toLocaleLowerCase' in that specification. |
Standard | |
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'String.prototype.toLocaleLowerCase' in that specification. |
Standard |
ブラウザ実装状況
機能 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
基本サポート | (有) | (有) | (有) | (有) | (有) |
機能 | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
基本サポート | (有) | (有) | (有) | (有) | (有) | (有) |