mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
* Add a detailed description of what is meant by ASCII case conversion
to strtolower() and strtoupper().
* Replace locale-related text on ucfirst(), lcfirst() and ucwords()
with text about ASCII case conversion.
* Remove entity note.locale-single-byte since it was only used on
ucwords().
* Add changelog entries to all the functions mentioned in the RFC.
54ff7bf8e0
131 lines
3.3 KiB
XML
131 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 54ff7bf8e0f8fa90988cccf6b583517366605f6d Maintainer: hirokawa Status: ready -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strtolower">
|
|
<refnamediv>
|
|
<refname>strtolower</refname>
|
|
<refpurpose>文字列を小文字にする</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>strtolower</methodname>
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<parameter>string</parameter>
|
|
の、ASCII のアルファベット部分をすべて小文字にして返します。
|
|
</para>
|
|
<para>
|
|
<literal>"A"</literal> (0x41) から <literal>"Z"</literal> (0x5a)
|
|
までの範囲のバイト列は、それぞれのバイト値に 32 を加えることによって
|
|
対応する小文字に変換されます。
|
|
</para>
|
|
<para>
|
|
マルチバイトの UTF-8 文字は無視されるので、
|
|
UTF-8 でエンコードされた文字列中にある ASCII 文字を変換する際も、
|
|
このやり方が使えます。
|
|
マルチバイトの ASCII でない文字を変換するには、
|
|
<function>mb_strtolower</function> を使います。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>string</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
入力文字列。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
小文字に変換した文字列を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&strings.changelog.ascii-case-conversion;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>strtolower</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$str = "Mary Had A Little Lamb and She LOVED It So";
|
|
$str = strtolower($str);
|
|
echo $str; // mary had a little lamb and she loved it so を返します
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
¬e.bin-safe;
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>strtoupper</function></member>
|
|
<member><function>ucfirst</function></member>
|
|
<member><function>ucwords</function></member>
|
|
<member><function>mb_strtolower</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|