Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

String.prototype.toLocaleUpperCase()

この記事は編集レビューを必要としています。ぜひご協力ください

この翻訳は不完全です。英語から この記事を翻訳 してください。

概要

任意のロケール固有のケースマッピングに従って、参照文字列の値を大文字に変換して返します。

構文

str.toLocaleUpperCase()

説明

toLocaleUpperCase() メソッドは任意のロケール固有のケースマッピングに従って大文字に変換された文字列の値を返します。toLocaleUpperCase()は文字列自体の値には影響を与えません。ほとんどの場合に、toUpperCase()と同じ結果になりますが、トルコ語のような、Unicodeのデフォルトケースマッピングに従わないケースマッピングの一部のローケルに対して、違った結果になるかもしれません。

例: toLocaleUpperCase()を使う

console.log('alphabet'.toLocaleUpperCase()); // 'ALPHABET'

仕様

仕様 状況 コメント
ECMAScript 3rd Edition. Standard Initial definition. Implemented in JavaScript 1.2.
ECMAScript 5.1 (ECMA-262)
The definition of 'String.prototype.toLocaleUpperCase' in that specification.
Standard  
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'String.prototype.toLocaleUpperCase' in that specification.
Standard  

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート (有) (有) (有) (有) (有)
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート (有) (有) (有) (有) (有) (有)

関連情報

ドキュメントのタグと貢献者

 このページの貢献者: shide55
 最終更新者: shide55,