cvs: phpdoc /en/reference/pcre configure.xml constants.xml reference.xml
| From: | Yun-young Lee | Date: | Wed, 22 Oct 2003 19:52:45 +0000 |
| Subject: | cvs: phpdoc /en/reference/pcre configure.xml constants.xml reference.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969356685@lists.php.net to get a copy of this message | ||
progcom Wed Oct 22 15:52:45 2003 EDT
Modified files:
/phpdoc/en/reference/pcre configure.xml constants.xml reference.xml
Log:
I'm sorry. mistake.
Index: phpdoc/en/reference/pcre/configure.xml diff -u phpdoc/en/reference/pcre/configure.xml:1.3 phpdoc/en/reference/pcre/configure.xml:1.4 --- phpdoc/en/reference/pcre/configure.xml:1.3 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/configure.xml Wed Oct 22 15:52:45 2003 @@ -1,17 +1,16 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.4 $ --> <section id="pcre.installation"> &reftitle.install; <para> - PHP 4.2.0ë¶í° ì´ í¨ìë¤ì 기본ê°ì¼ë¡ ì¬ì© ê°ë¥í©ëë¤. - <option role="configure">--without-pcre-regex</option>ë¡ PCRE í¨ì를 - ì¬ì©íì§ ìì ì ììµëë¤. ë²ë¤ë ë¼ì´ë¸ë¬ë¦¬ë¥¼ ì¬ì©íì§ ìëë¤ë©´, - <option role="configure">--with-pcre-regex=DIR</option>ì ì´ì©íì¬ - PCREì ì¸í¬ë£¨ëì ë¼ì´ë¸ë¬ë¦¬ íì¼ì´ ìë í¹ì í ëë í 리를 ì§ì íììì¤. - ì´ì ë²ì ììë ì´ í¨ìë¤ì ì¬ì©í기 ìí´ìë PHP를 - <option role="configure">--with-pcre-regex[=DIR]</option>를 주ì´ì - ì¤ì íê³ ì»´íì¼ í´ì¼í©ëë¤. + Beginning with PHP 4.2.0 these functions are enabled by default. You can + disable the pcre functions with + <option role="configure">--without-pcre-regex</option>. Use + <option role="configure"> --with-pcre-regex=DIR</option> to specify DIR + where PCRE's include and library files are located, if not using bundled library. + For older versions you have to configure and compile PHP + with <option role="configure">--with-pcre-regex[=DIR]</option> in order + to use these functions. </para> &windows.builtin; </section> @@ -36,3 +35,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + Index: phpdoc/en/reference/pcre/constants.xml diff -u phpdoc/en/reference/pcre/constants.xml:1.2 phpdoc/en/reference/pcre/constants.xml:1.3 --- phpdoc/en/reference/pcre/constants.xml:1.2 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/constants.xml Wed Oct 22 15:52:45 2003 @@ -1,66 +1,67 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> <section id="pcre.constants"> &reftitle.constants; &extension.constants; <table> - <title>PREG ìì</title> + <title>PREG constants</title> <tgroup cols="2"> <thead> <row> - <entry>ìì</entry> - <entry>ì¤ëª </entry> + <entry>constant</entry> + <entry>description</entry> </row> </thead> <tbody> <row> <entry>PREG_PATTERN_ORDER</entry> <entry> - $matches[0]ë í¨í´ ì 체를 ê°ì§ê³ , $matches[1]ë - ì²ì ê´í¸ì ë¤ì ìë¸í¨í´ì 문ìì´ì¸ ë°©ìì¼ë¡ 결과를 ì ë ¬í©ëë¤. - ì´ íëê·¸ë <function>preg_match_all</function>ììë§ ì¬ì©í©ëë¤. + Orders results so that $matches[0] is an array of full pattern + matches, $matches[1] is an array of strings matched by the first + parenthesized subpattern, and so on. This flag is only used with + <function>preg_match_all</function>. </entry> </row> <row> <entry>PREG_SET_ORDER</entry> <entry> - $matches[0]ë 매ì¹ë 첫ë²ì§¸ ì¸í¸ê³ , $matches[1]ë - ëë²ì§¸ ì¸í¸ì¸ ë°©ìì¼ë¡ 결과를 ì ë ¬í©ëë¤. - ì´ íëê·¸ë <function>preg_match_all</function>ììë§ ì¬ì©í©ëë¤. + Orders results so that $matches[0] is an array of first set of + matches, $matches[1] is an array of second set of matches, and so + on. This flag is only used with <function>preg_match_all</function>. </entry> </row> <row> <entry>PREG_OFFSET_CAPTURE</entry> <entry> - <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>ì ì¤ëª ì ë³´ììì¤. - ì´ íëê·¸ë <literal>PHP</literal> 4.3.0ë¶í° ì¬ì©í ì ììµëë¤. + See the description of + <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>. This flag is + available since <literal>PHP</literal> 4.3.0 . </entry> </row> <row> <entry>PREG_SPLIT_NO_EMPTY</entry> <entry> - ì´ íëê·¸ë <function>preg_split</function>ê° ë¹ì´ìì§ ìë ì¡°ê°ë§ì - ë°ííê² í©ëë¤. + This flag tells <function>preg_split</function> to only return only + non-empty pieces. </entry> </row> <row> <entry>PREG_SPLIT_DELIM_CAPTURE</entry> <entry> - ì´ íëê·¸ë <function>preg_split</function>ê° êµ¬ë¶ì ìì ê´í¸ë¡ - ëë¬ì¸ì¸ ííìë ì¡ìë´ê² í©ëë¤. <literal>PHP</literal> 4.0.5ë¶í° - ì¬ì©í ì ììµëë¤. + This flag tells <function>preg_split</function> to capture + parenthesized expression in the delimiter pattern as well. This flag + is available since <literal>PHP</literal> 4.0.5 . </entry> </row> <row> <entry>PREG_SPLIT_OFFSET_CAPTURE</entry> <entry> - ì´ íë그를 ì§ì íë©´, 모ë ë¶ìì ì¸ ë¬¸ìì´ ì¤íì ì 매ì¹ë ë°íí©ëë¤. - Note that this changes the return + If this flag is set, for every occuring match the appendant string + offset will also be returned. Note that this changes the return value in an array where very element is an array consisting of the matched string at offset 0 and it's string offset into subject at - offset 1. <literal>PHP</literal> 4.3.0ë¶í° ì¬ì©í ì ìê³ , - <function>preg_split</function>ììë§ ì¬ì©í©ëë¤. + offset 1. This flag is available since <literal>PHP</literal> 4.3.0 + and is only used for <function>preg_split</function>. </entry> </row> </tbody> Index: phpdoc/en/reference/pcre/reference.xml diff -u phpdoc/en/reference/pcre/reference.xml:1.6 phpdoc/en/reference/pcre/reference.xml:1.7 --- phpdoc/en/reference/pcre/reference.xml:1.6 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/reference.xml Wed Oct 22 15:52:45 2003 @@ -1,38 +1,39 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.7 $ --> <reference id="ref.pcre"> - <title>ì ê·ííì í¨ì (í-í¸í)</title> + <title>Regular Expression Functions (Perl-Compatible)</title> <titleabbrev>PCRE</titleabbrev> <partintro> <section id="pcre.intro"> &reftitle.intro; <para> - ì´ í¨ìë¤ìì ì¬ì©ëë í¨í´ 문ë²ì íì ê°ê¹ìµëë¤. ííìì - 구ë¶ìë¡ ê°ì¸ì ¸ì¼ë§ í©ëë¤. ì를 ë¤ë©´, ì¬ëì¬(/)ë¡ ê°ì¸ì¤ëë¤. - ì문ìì ì«ì, ë°±ì¬ëì¬(\)를 ì ì¸í ì´ë í 문ìë¼ë 구ë¶ìë¡ - ì¬ì©í ì ììµëë¤. 구ë¶ìê° ííì ììì ì¬ì©ë ê²½ì°, - ë°±ì¬ëì¬ë¡ ì´ì¤ì¼ì´íí´ì¼í©ëë¤. PHP 4.0.4ë¶í°, í íìì - (), {}, [], <> ë§¤ì¹ êµ¬ë¶ì를 ì¬ì©í ì ììµëë¤. + The syntax for patterns used in these functions closely resembles + Perl. The expression should be enclosed in the delimiters, a + forward slash (/), for example. Any character can be used for + delimiter as long as it's not alphanumeric or backslash (\). If + the delimiter character has to be used in the expression itself, + it needs to be escaped by backslash. Since PHP 4.0.4, you can also use + Perl-style (), {}, [], and <> matching delimiters. + </para> + <para> + The ending delimiter may be followed by various modifiers that + affect the matching. + See <link linkend="pcre.pattern.modifiers">Pattern Modifiers</link>. </para> <para> - ì¢ ë£ êµ¬ë¶ì ë¤ìë 매ì¹ì ìí¥ì 주ë ì¬ë¬ê°ì§ ë³ê²½ì(midifier)를 - ì¸ ì ììµëë¤. <link linkend="pcre.pattern.modifiers">í¨í´ - ë³ê²½ì</link>를 ì°¸ê³ íììì¤. - </para> - <para> - PHPë <link linkend="ref.regex">POSIX íì¥ ì ê·ííì í¨ì</link>ë¡ - POSIX íì¥ ë¬¸ë²ì ì¬ì©íë ì ê·ííìì ì§ìí©ëë¤. + PHP also supports regular expressions using a POSIX-extended syntax + using the <link linkend="ref.regex">POSIX-extended regex functions.</link>. </para> </section> <section id="pcre.requirements"> &reftitle.required; <para> - ì ê·ííì ì§ìì Philip Hazelì´ ìì±í PCRE ë¼ì´ë¸ë¬ë¦¬ í¨í¤ì§ì - ìí´ ì ê³µë©ëë¤. ì ìê¶ì University of Cambridge, Englandì - ììµëë¤. <ulink url="&url.pcre;">&url.pcre;</ulink>ì ì¡´ì¬í©ëë¤. + Regular expression support is provided by the PCRE library + package, which is open source software, written by Philip Hazel, + and copyright by the University of Cambridge, England. It is + available at <ulink url="&url.pcre;">&url.pcre;</ulink>. </para> </section> @@ -54,7 +55,7 @@ &reftitle.examples; <para> <example> - <title>ì í¨í í¨í´ ìì </title> + <title>Examples of valid patterns</title> <itemizedlist> <listitem><simpara><literal>/<\/\w+>/</literal></simpara></listitem> <listitem><simpara><literal>|(\d{3})-\d+|Sm</literal></simpara></listitem> @@ -65,21 +66,21 @@ </para> <para> <example> - <title>ì í¨íì§ ìì í¨í´ ìì </title> + <title>Examples of invalid patterns</title> <itemizedlist> <listitem> <simpara> - <literal>/href='(.*)'</literal> - ì¢ ë£ êµ¬ë¶ìê° ììµëë¤ + <literal>/href='(.*)'</literal> - missing ending delimiter </simpara> </listitem> <listitem> <simpara> - <literal>/\w+\s*\w+/J</literal> - ì ì ìë ë³ê²½ì 'J' + <literal>/\w+\s*\w+/J</literal> - unknown modifier 'J' </simpara> </listitem> <listitem> <simpara> - <literal>1-\d3-\d3-\d4|</literal> - ìì 구ë¶ìê° ììµëë¤ + <literal>1-\d3-\d3-\d4|</literal> - missing starting delimiter </simpara> </listitem> </itemizedlist> @@ -112,3 +113,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +
Index: phpdoc/en/reference/pcre/configure.xml diff -u phpdoc/en/reference/pcre/configure.xml:1.3 phpdoc/en/reference/pcre/configure.xml:1.4 --- phpdoc/en/reference/pcre/configure.xml:1.3 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/configure.xml Wed Oct 22 15:52:45 2003 @@ -1,17 +1,16 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.4 $ --> <section id="pcre.installation"> &reftitle.install; <para> - PHP 4.2.0ë¶í° ì´ í¨ìë¤ì 기본ê°ì¼ë¡ ì¬ì© ê°ë¥í©ëë¤. - <option role="configure">--without-pcre-regex</option>ë¡ PCRE í¨ì를 - ì¬ì©íì§ ìì ì ììµëë¤. ë²ë¤ë ë¼ì´ë¸ë¬ë¦¬ë¥¼ ì¬ì©íì§ ìëë¤ë©´, - <option role="configure">--with-pcre-regex=DIR</option>ì ì´ì©íì¬ - PCREì ì¸í¬ë£¨ëì ë¼ì´ë¸ë¬ë¦¬ íì¼ì´ ìë í¹ì í ëë í 리를 ì§ì íììì¤. - ì´ì ë²ì ììë ì´ í¨ìë¤ì ì¬ì©í기 ìí´ìë PHP를 - <option role="configure">--with-pcre-regex[=DIR]</option>를 주ì´ì - ì¤ì íê³ ì»´íì¼ í´ì¼í©ëë¤. + Beginning with PHP 4.2.0 these functions are enabled by default. You can + disable the pcre functions with + <option role="configure">--without-pcre-regex</option>. Use + <option role="configure"> --with-pcre-regex=DIR</option> to specify DIR + where PCRE's include and library files are located, if not using bundled library. + For older versions you have to configure and compile PHP + with <option role="configure">--with-pcre-regex[=DIR]</option> in order + to use these functions. </para> &windows.builtin; </section> @@ -36,3 +35,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + Index: phpdoc/en/reference/pcre/constants.xml diff -u phpdoc/en/reference/pcre/constants.xml:1.2 phpdoc/en/reference/pcre/constants.xml:1.3 --- phpdoc/en/reference/pcre/constants.xml:1.2 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/constants.xml Wed Oct 22 15:52:45 2003 @@ -1,66 +1,67 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> <section id="pcre.constants"> &reftitle.constants; &extension.constants; <table> - <title>PREG ìì</title> + <title>PREG constants</title> <tgroup cols="2"> <thead> <row> - <entry>ìì</entry> - <entry>ì¤ëª </entry> + <entry>constant</entry> + <entry>description</entry> </row> </thead> <tbody> <row> <entry>PREG_PATTERN_ORDER</entry> <entry> - $matches[0]ë í¨í´ ì 체를 ê°ì§ê³ , $matches[1]ë - ì²ì ê´í¸ì ë¤ì ìë¸í¨í´ì 문ìì´ì¸ ë°©ìì¼ë¡ 결과를 ì ë ¬í©ëë¤. - ì´ íëê·¸ë <function>preg_match_all</function>ììë§ ì¬ì©í©ëë¤. + Orders results so that $matches[0] is an array of full pattern + matches, $matches[1] is an array of strings matched by the first + parenthesized subpattern, and so on. This flag is only used with + <function>preg_match_all</function>. </entry> </row> <row> <entry>PREG_SET_ORDER</entry> <entry> - $matches[0]ë 매ì¹ë 첫ë²ì§¸ ì¸í¸ê³ , $matches[1]ë - ëë²ì§¸ ì¸í¸ì¸ ë°©ìì¼ë¡ 결과를 ì ë ¬í©ëë¤. - ì´ íëê·¸ë <function>preg_match_all</function>ììë§ ì¬ì©í©ëë¤. + Orders results so that $matches[0] is an array of first set of + matches, $matches[1] is an array of second set of matches, and so + on. This flag is only used with <function>preg_match_all</function>. </entry> </row> <row> <entry>PREG_OFFSET_CAPTURE</entry> <entry> - <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>ì ì¤ëª ì ë³´ììì¤. - ì´ íëê·¸ë <literal>PHP</literal> 4.3.0ë¶í° ì¬ì©í ì ììµëë¤. + See the description of + <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>. This flag is + available since <literal>PHP</literal> 4.3.0 . </entry> </row> <row> <entry>PREG_SPLIT_NO_EMPTY</entry> <entry> - ì´ íëê·¸ë <function>preg_split</function>ê° ë¹ì´ìì§ ìë ì¡°ê°ë§ì - ë°ííê² í©ëë¤. + This flag tells <function>preg_split</function> to only return only + non-empty pieces. </entry> </row> <row> <entry>PREG_SPLIT_DELIM_CAPTURE</entry> <entry> - ì´ íëê·¸ë <function>preg_split</function>ê° êµ¬ë¶ì ìì ê´í¸ë¡ - ëë¬ì¸ì¸ ííìë ì¡ìë´ê² í©ëë¤. <literal>PHP</literal> 4.0.5ë¶í° - ì¬ì©í ì ììµëë¤. + This flag tells <function>preg_split</function> to capture + parenthesized expression in the delimiter pattern as well. This flag + is available since <literal>PHP</literal> 4.0.5 . </entry> </row> <row> <entry>PREG_SPLIT_OFFSET_CAPTURE</entry> <entry> - ì´ íë그를 ì§ì íë©´, 모ë ë¶ìì ì¸ ë¬¸ìì´ ì¤íì ì 매ì¹ë ë°íí©ëë¤. - Note that this changes the return + If this flag is set, for every occuring match the appendant string + offset will also be returned. Note that this changes the return value in an array where very element is an array consisting of the matched string at offset 0 and it's string offset into subject at - offset 1. <literal>PHP</literal> 4.3.0ë¶í° ì¬ì©í ì ìê³ , - <function>preg_split</function>ììë§ ì¬ì©í©ëë¤. + offset 1. This flag is available since <literal>PHP</literal> 4.3.0 + and is only used for <function>preg_split</function>. </entry> </row> </tbody> Index: phpdoc/en/reference/pcre/reference.xml diff -u phpdoc/en/reference/pcre/reference.xml:1.6 phpdoc/en/reference/pcre/reference.xml:1.7 --- phpdoc/en/reference/pcre/reference.xml:1.6 Wed Oct 22 15:43:07 2003 +++ phpdoc/en/reference/pcre/reference.xml Wed Oct 22 15:52:45 2003 @@ -1,38 +1,39 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 --> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.7 $ --> <reference id="ref.pcre"> - <title>ì ê·ííì í¨ì (í-í¸í)</title> + <title>Regular Expression Functions (Perl-Compatible)</title> <titleabbrev>PCRE</titleabbrev> <partintro> <section id="pcre.intro"> &reftitle.intro; <para> - ì´ í¨ìë¤ìì ì¬ì©ëë í¨í´ 문ë²ì íì ê°ê¹ìµëë¤. ííìì - 구ë¶ìë¡ ê°ì¸ì ¸ì¼ë§ í©ëë¤. ì를 ë¤ë©´, ì¬ëì¬(/)ë¡ ê°ì¸ì¤ëë¤. - ì문ìì ì«ì, ë°±ì¬ëì¬(\)를 ì ì¸í ì´ë í 문ìë¼ë 구ë¶ìë¡ - ì¬ì©í ì ììµëë¤. 구ë¶ìê° ííì ììì ì¬ì©ë ê²½ì°, - ë°±ì¬ëì¬ë¡ ì´ì¤ì¼ì´íí´ì¼í©ëë¤. PHP 4.0.4ë¶í°, í íìì - (), {}, [], <> ë§¤ì¹ êµ¬ë¶ì를 ì¬ì©í ì ììµëë¤. + The syntax for patterns used in these functions closely resembles + Perl. The expression should be enclosed in the delimiters, a + forward slash (/), for example. Any character can be used for + delimiter as long as it's not alphanumeric or backslash (\). If + the delimiter character has to be used in the expression itself, + it needs to be escaped by backslash. Since PHP 4.0.4, you can also use + Perl-style (), {}, [], and <> matching delimiters. + </para> + <para> + The ending delimiter may be followed by various modifiers that + affect the matching. + See <link linkend="pcre.pattern.modifiers">Pattern Modifiers</link>. </para> <para> - ì¢ ë£ êµ¬ë¶ì ë¤ìë 매ì¹ì ìí¥ì 주ë ì¬ë¬ê°ì§ ë³ê²½ì(midifier)를 - ì¸ ì ììµëë¤. <link linkend="pcre.pattern.modifiers">í¨í´ - ë³ê²½ì</link>를 ì°¸ê³ íììì¤. - </para> - <para> - PHPë <link linkend="ref.regex">POSIX íì¥ ì ê·ííì í¨ì</link>ë¡ - POSIX íì¥ ë¬¸ë²ì ì¬ì©íë ì ê·ííìì ì§ìí©ëë¤. + PHP also supports regular expressions using a POSIX-extended syntax + using the <link linkend="ref.regex">POSIX-extended regex functions.</link>. </para> </section> <section id="pcre.requirements"> &reftitle.required; <para> - ì ê·ííì ì§ìì Philip Hazelì´ ìì±í PCRE ë¼ì´ë¸ë¬ë¦¬ í¨í¤ì§ì - ìí´ ì ê³µë©ëë¤. ì ìê¶ì University of Cambridge, Englandì - ììµëë¤. <ulink url="&url.pcre;">&url.pcre;</ulink>ì ì¡´ì¬í©ëë¤. + Regular expression support is provided by the PCRE library + package, which is open source software, written by Philip Hazel, + and copyright by the University of Cambridge, England. It is + available at <ulink url="&url.pcre;">&url.pcre;</ulink>. </para> </section> @@ -54,7 +55,7 @@ &reftitle.examples; <para> <example> - <title>ì í¨í í¨í´ ìì </title> + <title>Examples of valid patterns</title> <itemizedlist> <listitem><simpara><literal>/<\/\w+>/</literal></simpara></listitem> <listitem><simpara><literal>|(\d{3})-\d+|Sm</literal></simpara></listitem> @@ -65,21 +66,21 @@ </para> <para> <example> - <title>ì í¨íì§ ìì í¨í´ ìì </title> + <title>Examples of invalid patterns</title> <itemizedlist> <listitem> <simpara> - <literal>/href='(.*)'</literal> - ì¢ ë£ êµ¬ë¶ìê° ììµëë¤ + <literal>/href='(.*)'</literal> - missing ending delimiter </simpara> </listitem> <listitem> <simpara> - <literal>/\w+\s*\w+/J</literal> - ì ì ìë ë³ê²½ì 'J' + <literal>/\w+\s*\w+/J</literal> - unknown modifier 'J' </simpara> </listitem> <listitem> <simpara> - <literal>1-\d3-\d3-\d4|</literal> - ìì 구ë¶ìê° ììµëë¤ + <literal>1-\d3-\d3-\d4|</literal> - missing starting delimiter </simpara> </listitem> </itemizedlist> @@ -112,3 +113,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +