-
Notifications
You must be signed in to change notification settings - Fork 81
[PHP 8.4] mbstring関数の追加 #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KentarouTakeda
merged 4 commits into
php:master
from
youkidearitai:php84_mbstring_functions
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c411b93
[PHP 8.4] mbstring関数の追加
youkidearitai 884aba8
Update reference/mbstring/functions/mb-lcfirst.xml
youkidearitai b10bfdf
Update reference/mbstring/functions/mb-ltrim.xml
youkidearitai 502c28f
Update reference/mbstring/functions/mb-rtrim.xml
youkidearitai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<refentry xml:id="function.mb-lcfirst" xmlns="http://docbook.org/ns/docbook"> | ||
<refnamediv> | ||
<refname>mb_lcfirst</refname> | ||
<refpurpose>文字列の最初の文字を小文字にする</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type>string</type><methodname>mb_lcfirst</methodname> | ||
<methodparam><type>string</type><parameter>string</parameter></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
マルチバイト対応の <function>lcfirst</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="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><function>mb_ucfirst</function></member> | ||
<member><function>lcfirst</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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<refentry xml:id="function.mb-ltrim" xmlns="http://docbook.org/ns/docbook"> | ||
<refnamediv> | ||
<refname>mb_ltrim</refname> | ||
<refpurpose>文字列の先頭にあるホワイトスペースを取り除く</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type>string</type><methodname>mb_ltrim</methodname> | ||
<methodparam><type>string</type><parameter>string</parameter></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>characters</parameter><initializer>&null;</initializer></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
マルチバイト対応の <function>ltrim</function> 処理を行い、 | ||
<parameter>string</parameter>の最初から空白文字を取り除き、 | ||
取り除かれた文字列を返します。 | ||
</simpara> | ||
<simpara> | ||
2番目のパラメータを指定しない場合、 | ||
<function>mb_ltrim</function> は以下の文字を削除します。 | ||
</simpara> | ||
&strings.stripped.unicode; | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>string</parameter></term> | ||
<listitem> | ||
<simpara> | ||
ホワイトスペースを取り除く<type>string</type> | ||
youkidearitai marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>characters</parameter></term> | ||
<listitem> | ||
&strings.parameter.unicode.optional; | ||
</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="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><function>mb_trim</function></member> | ||
<member><function>mb_rtrim</function></member> | ||
<member><function>ltrim</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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<refentry xml:id="function.mb-rtrim" xmlns="http://docbook.org/ns/docbook"> | ||
<refnamediv> | ||
<refname>mb_rtrim</refname> | ||
<refpurpose>文字列の末尾にあるホワイトスペースを取り除く</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type>string</type><methodname>mb_rtrim</methodname> | ||
<methodparam><type>string</type><parameter>string</parameter></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>characters</parameter><initializer>&null;</initializer></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
マルチバイト対応の <function>rtrim</function> 処理を行い, | ||
<parameter>string</parameter>の最後から空白文字を取り除き、 | ||
取り除かれた文字列を返します。 | ||
</simpara> | ||
<simpara> | ||
2番目のパラメータを指定しない場合、 | ||
<function>mb_rtrim</function> は以下の文字を削除します。 | ||
</simpara> | ||
&strings.stripped.unicode; | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>string</parameter></term> | ||
<listitem> | ||
<simpara> | ||
ホワイトスペースを取り除く<type>string></type> | ||
youkidearitai marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>characters</parameter></term> | ||
<listitem> | ||
&strings.parameter.unicode.optional; | ||
</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="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><function>mb_trim</function></member> | ||
<member><function>mb_ltrim</function></member> | ||
<member><function>rtrim</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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<refentry xml:id="function.mb-trim" xmlns="http://docbook.org/ns/docbook"> | ||
<refnamediv> | ||
<refname>mb_trim</refname> | ||
<refpurpose>文字列の先頭および末尾にあるホワイトスペースを取り除く</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type>string</type><methodname>mb_trim</methodname> | ||
<methodparam><type>string</type><parameter>string</parameter></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>characters</parameter><initializer>&null;</initializer></methodparam> | ||
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
マルチバイト対応の <function>trim</function> 処理を行い、 | ||
<parameter>string</parameter>の最初および最後から空白文字を取り除き、 | ||
取り除かれた文字列を返します。 | ||
2番目のパラメータを指定しない場合、 | ||
<function>mb_trim</function> は以下の文字を削除します。 | ||
</simpara> | ||
&strings.stripped.unicode; | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>string</parameter></term> | ||
<listitem> | ||
<simpara> | ||
ホワイトスペースを取り除く<type>string</type>。 | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>characters</parameter></term> | ||
<listitem> | ||
&strings.parameter.unicode.optional; | ||
</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="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><function>mb_ltrim</function></member> | ||
<member><function>mb_rtrim</function></member> | ||
<member><function>trim</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 | ||
--> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.