mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
100 lines
3.2 KiB
XML
100 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 154d938992a7ccec7febb3c6f2366bd262dac388 Maintainer: youkidearitai Status: ready -->
|
|
<!-- Credits: youkidearitai -->
|
|
|
|
<refentry xml:id="function.mb-ucfirst" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>mb_ucfirst</refname>
|
|
<refpurpose>文字列の最初の文字を大文字にする</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>mb_ucfirst</methodname>
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<simpara>
|
|
マルチバイト対応の <function>ucfirst</function> 処理を行い、
|
|
<parameter>string</parameter> の最初の文字をタイトルケースに変換して返します。
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>string</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
入力文字列。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>encoding</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
文字エンコーディングを指定します。省略した場合、もしくは<type>null</type>の場合は、内部文字エンコーディングを使用します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<simpara>
|
|
変換後の文字列を返します。
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
<function>strtolower</function> や <function>strtoupper</function>のような関数とは対照的に、
|
|
ケースフォールディングはUnicode 文字属性を基準に行われます。
|
|
したがって、この挙動はロケールの設定に影響されず、また、すべてのアルファベット、
|
|
例えば a ウムラウト (ä)などを変換することができます。
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Unicodeプロパティについての詳細はこちらを参照してください<link
|
|
xlink:href="&url.unicode.reports;">&url.unicode.reports;</link>。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><function>mb_lcfirst</function></member>
|
|
<member><function>mb_convert_case</function></member>
|
|
<member><function>ucfirst</function></member>
|
|
</simplelist>
|
|
</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
|
|
-->
|