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
-->
+