samesch         Tue Dec 18 18:01:09 2001 EDT

  Modified files:              
    /phpdoc/de/functions        regex.xml 
  Log:
  ummm... fixed it
  
Index: phpdoc/de/functions/regex.xml
diff -u phpdoc/de/functions/regex.xml:1.23 phpdoc/de/functions/regex.xml:1.24
--- phpdoc/de/functions/regex.xml:1.23  Mon Dec 17 17:59:33 2001
+++ phpdoc/de/functions/regex.xml       Tue Dec 18 18:01:06 2001
@@ -57,17 +57,16 @@
     <example>
      <title>Beispiele regulärer Ausdrücke</title>
      <programlisting role="php">
-<![CDATA[
-ereg ("abc", $string);            
-/* Gibt true zurück, falls "abc"
+ereg (&quot;abc&quot;, $string);            
+/* Gibt true zurück, falls &quot;abc&quot;
    irgendwo in $string gefunden wird. */
 
-ereg ("^abc", $string);
-/* Gibt true zurück, falls "abc"
+ereg (&quot;^abc&quot;, $string);
+/* Gibt true zurück, falls &quot;abc&quot;
    am Anfang von $string gefunden wird. */
 
 ereg ("abc$", $string);
-/* Gibt true zurück, falls "abc"
+/* Gibt true zurück, falls &quot;abc&quot;
    am Ende von $string gefunden wird. */
 
 eregi ("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT);  
@@ -78,15 +77,14 @@
 /* Setzt drei Wörter, die durch Leerzeichen getrennt
    sind, in $regs[1], $regs[2] und $regs[3] ein. */
 
-$string = ereg_replace ("^", "<br />", $string); 
-/* Setzt ein <br /> Tag vor $string. */ 
+$string = ereg_replace ("^", "&lt;br /&gt;", $string); 
+/* Setzt ein &lt;br /&gt; Tag vor $string. */ 
 
-$string = ereg_replace ("$", "<br />", $string); 
-/* Setzt ein <br /> Tag hinter $string. */
+$string = ereg_replace ("$", "&lt;br /&gt;", $string); 
+/* Setzt ein &lt;br /&gt; Tag hinter $string. */
 
 $string = ereg_replace ("\n", "", $string);
 /* Entfernt alle Zeilenumbrüche aus $string. */
-]]>
      </programlisting>
     </example>
    </para>
@@ -101,20 +99,16 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>int</type><methodname>ereg</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-     <methodparam choice="opt">
-      <type>array</type><parameter>regs</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>int <function>ereg</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+      <paramdef>array 
+       <parameter><optional>regs</optional></parameter>
+      </paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <note>
      <para>
       Die Funktion <function>preg_match</function>, die eine zu Perl
@@ -163,13 +157,11 @@
      <example>
       <title><function>ereg</function> Beispiel</title>
       <programlisting role="php">
-<![CDATA[
 if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
     echo "$regs[3].$regs[2].$regs[1]";
 } else {
     echo "Ungültiges Datumsformat: $date";
 }
-]]>
       </programlisting>
      </example>
     </para>
@@ -189,20 +181,14 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>string</type><methodname>ereg_replace</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Ersatz</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>string <function>ereg_replace</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Ersatz</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <note>
      <para>
       Die Funktion <function>preg_replace</function>, die eine zu Perl
@@ -243,12 +229,10 @@
      <example>
       <title><function>ereg_replace</function> Beispiel</title>
       <programlisting>
-<![CDATA[
 $string = "Das ist ein Test";
 echo ereg_replace (" ist", " war", $string);
 echo ereg_replace ("( )ist", "\\1war", $string);
 echo ereg_replace ("(( )ist)", "\\2war", $string);
-]]>
       </programlisting>
      </example>
     </para>
@@ -262,8 +246,7 @@
      <example>
       <title><function>ereg_replace</function> Beispiel</title>
       <programlisting>
-<![CDATA[
-<?php
+&lt;?php
 /* Dieses funktioniert nicht wie erwartet. */
 $zahl = 4;
 $zeichenkette = "Diese Zeichenkette hat vier Wörter.";
@@ -276,7 +259,6 @@
 $zeichenkette = ereg_replace('vier', $zahl, $zeichenkette);
 echo $zeichenkette;   /* Output: 'Diese Zeichenkette hat 4 Wörter.' */
 ?>
-]]>
       </programlisting>
      </example>
     </para>
@@ -284,10 +266,8 @@
      <example>
       <title>Replace URLs with links</title>
       <programlisting role="php">
-<![CDATA[
-$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
-                     "<a href=\"\\0\">\\0</a>", $text);
-]]>
+$text = ereg_replace("[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]",
+                     "&lt;a href=\"\\0\"&gt;\\0&lt;/a&gt;", $text);
       </programlisting>
      </example>
     </para>
@@ -309,20 +289,16 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>int</type><methodname>eregi</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-     <methodparam choice="opt">
-      <type>array</type><parameter>regs</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>int <function>eregi</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+      <paramdef>array 
+       <parameter><optional>regs</optional></parameter>
+      </paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <para>
      Diese Funktion entspricht <function>ereg</function> mit dem
      Unterschied, dass sie übereinstimmende Buchstaben nicht nach
@@ -330,11 +306,9 @@
      <example>
       <title><function>eregi</function> example</title>
       <programlisting role="php">
-<![CDATA[
 if (eregi("z", $string)) {
     echo "'$string' contains a 'z' or 'Z'!";
 }
-]]>
       </programlisting>
      </example>
     </para>
@@ -356,20 +330,14 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>string</type><methodname>eregi_replace</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Ersatz</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>string <function>eregi_replace</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Ersatz</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <para>
      Diese Funktion entspricht <function>ereg_replace</function> mit
      dem Unterschied, dass sie übereinstimmende Buchstaben nicht nach
@@ -392,20 +360,16 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>array</type><methodname>split</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-     <methodparam choice="opt">
-      <type>int</type><parameter>Beschränkung</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>array <function>split</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+      <paramdef>int 
+       <parameter><optional>Beschränkung</optional></parameter>
+      </paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <note>
      <para>
       Die Funktion <function>preg_split</function>, die eine zu Perl
@@ -432,9 +396,7 @@
      <example>
       <title><function>split</function> Beispiel</title>
       <programlisting role="php">
-<![CDATA[
 list($user,$pass,$uid,$gid,$extra)= split (":", $passwd_line, 5);
-]]>
       </programlisting>
      </example>
     </para>
@@ -456,12 +418,10 @@
      <example>
       <title><function>split</function> Beispiel</title>
       <programlisting role="php">
-<![CDATA[
 $datum = "04/30/1973";  // Trennzeichen darf ein Schrägstrich, Punkt
                         // oder Bindestrich sein
 list ($monat, $tag, $jahr) = split ('[/.-]', $datum);
-echo "Monat: $monat; Tag: $tag; Jahr: $jahr<br>\n";
-]]>
+echo "Monat: $monat; Tag: $tag; Jahr: $jahr&lt;br&gt;\n";
       </programlisting>
      </example>
     </para>
@@ -515,20 +475,16 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>array</type><methodname>spliti</methodname>
-     <methodparam>
-      <type>string</type><parameter>Suchmuster</parameter>
-     </methodparam>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-     <methodparam choice="opt">
-      <type>int</type><parameter>Beschränkung></parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>array <function>spliti</function></funcdef>
+      <paramdef>string <parameter>Suchmuster</parameter></paramdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+      <paramdef>int 
+       <parameter><optional>Beschränkung</optional></parameter>
+      </paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <para>
      Diese Funktion entspricht <function>split</function> mit dem
      Unterschied, dass sie übereinstimmende Buchstaben nicht nach
@@ -552,14 +508,12 @@
    </refnamediv>
    <refsect1>
     <title>Beschreibung</title>
-
-    <methodsynopsis>
-     <type>string</type><methodname>sql_regcase</methodname>
-     <methodparam>
-      <type>string</type><parameter>Zeichenkette</parameter>
-     </methodparam>
-    </methodsynopsis>
-
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>string <function>sql_regcase</function></funcdef>
+      <paramdef>string <parameter>Zeichenkette</parameter></paramdef>
+     </funcprototype>
+    </funcsynopsis>
     <para>
      Gibt einen korrekten regulären Ausdruck zurück, der mit
      <parameter>Zeichenkette</parameter> ohne Berücksichtigung von
@@ -571,9 +525,7 @@
      <example>
       <title><function>sql_regcase</function> Beispiel</title>
       <programlisting role="php">
-<![CDATA[
 echo sql_regcase ("Foo bar");
-]]>
       </programlisting>
      </example>
      Gibt <screen>[Ff][Oo][Oo] [Bb][Aa][Rr]</screen> aus.


Reply via email to