Revision 87748 of String.prototype.toLocaleLowerCase()

  • Revision slug: JavaScript/Reference/Global_Objects/String/toLocaleLowerCase
  • Revision title: toLocaleLowerCase
  • Revision id: 87748
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment 91 words added, 3 words removed

Revision Content

Summary

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

Method of String
Implemented in: JavaScript 1.2
ECMA Version: ECMA-262

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 lowerText="ALPHABET";
document.write(lowerText.toLocaleLowerCase());

See also

toLowerCase()

Revision Source

<h3>Summary</h3>
<p>Returns the calling string value converted to lower case, according to any locale-specific case mappings.</p>
<table class="fullwidth-table"> <tbody> <tr> <td class="header" colspan="2">Method of <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</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 lowerText="ALPHABET";
document.write(lowerText.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