MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 87750 of String.prototype.toLocaleLowerCase()

  • Revision slug: JavaScript/Reference/Global_Objects/String/toLocaleLowerCase
  • Revision title: toLocaleLowerCase
  • Revision id: 87750
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment 5 words added, 9 words removed

Revision Content

Returns the calling string value converted to lower case, according to any locale-specific case mappings.

Method of String
Implemented in 1.2
ECMAScript Edition ECMAScript 1st Edition

Syntax

toLocaleLowerCase()

Parameters

None.

Description

The toLocaleLowerCase method returns the value of the string converted to lower case according to any locale-specific case mappings. toLocaleLowerCase does not affect the value of the string itself. In most cases, this will produce the same result as toLowerCase(), but for some locales, such as Turkish, whose case mappings do not follow the default case mappings in Unicode, there may be a different result.

Examples

Example: Using toLocaleLowerCase

The following example displays the string "alphabet":

var upperText="ALPHABET";
document.write(upperText.toLocaleLowerCase());

See also

toLowerCase()

Revision Source

<p>Returns the calling string value converted to lower case, according to any locale-specific case mappings.</p>
<table class="standard-table"> <thead> <tr> <th class="header" colspan="2">Method of <a href="/en/JavaScript/Reference/Global_Objects/String"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>
</table> <h3 name="Syntax">Syntax</h3>
<p><code> toLocaleLowerCase() </code></p>
<h3 name="Parameters">Parameters</h3>
<p>None.</p>
<h3 name="Description">Description</h3>
<p>The <code>toLocaleLowerCase</code> method returns the value of the string converted to lower case according to any locale-specific case mappings. <code>toLocaleLowerCase</code> does not affect the value of the string itself. In most cases, this will produce the same result as <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase">toLowerCase()</a>, but for some locales, such as Turkish, whose case mappings do not follow the default case mappings in Unicode, there may be a different result.</p>
<h3 name="Examples">Examples</h3>
<h4 name="Example:_Using_toUpperCase">Example: Using <code>toLocaleLowerCase</code></h4>
<p>The following example displays the string "alphabet":</p>
<pre class="brush: js">var upperText="ALPHABET";
document.write(upperText.toLocaleLowerCase());</pre><h3>See also</h3>
<p><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase">toLowerCase()</a></p>
Revert to this revision