mfischer                Sun Jun  9 17:50:25 2002 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      sscanf.xml 
    /phpdoc/en/reference/filesystem/functions   fscanf.xml 
  Log:
  - Document whitespace behaviour of the scanf functions, closes #12337.
  
  
Index: phpdoc/en/reference/strings/functions/sscanf.xml
diff -u phpdoc/en/reference/strings/functions/sscanf.xml:1.2 
phpdoc/en/reference/strings/functions/sscanf.xml:1.3
--- phpdoc/en/reference/strings/functions/sscanf.xml:1.2        Wed Apr 17 02:44:22 
2002
+++ phpdoc/en/reference/strings/functions/sscanf.xml    Sun Jun  9 17:50:17 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.33 -->
   <refentry id="function.sscanf">
    <refnamediv>
@@ -23,6 +23,13 @@
      according to the specified <parameter>format</parameter>. If only
      two parameters were passed to this function, the values parsed
      will be returned as an array.
+    </para>
+    <para>
+     Any whitespace in the format string matches any whitespace in the input
+     string. This means that even a tab \n in the format string can match a
+     single space character in the input string.
+    </para>
+    <para>
      <example>
       <title><function>sscanf</function> Example</title>
       <programlisting role="php">
Index: phpdoc/en/reference/filesystem/functions/fscanf.xml
diff -u phpdoc/en/reference/filesystem/functions/fscanf.xml:1.2 
phpdoc/en/reference/filesystem/functions/fscanf.xml:1.3
--- phpdoc/en/reference/filesystem/functions/fscanf.xml:1.2     Wed Apr 17 02:38:08 
2002
+++ phpdoc/en/reference/filesystem/functions/fscanf.xml Sun Jun  9 17:50:25 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.fscanf">
    <refnamediv>
@@ -24,6 +24,13 @@
      Otherwise, if optional parameters are passed, the function will
      return the number of assigned values. The optional parameters
      must be passed by reference.
+    </para>
+    <para>
+     Any whitespace in the format string matches any whitespace in the input
+     stream. This means that even a tab <literal>\n</literal> in the format
+     string can match a single space character in the input stream.
+    </para>
+    <para>
      <example>
       <title><function>fscanf</function> Example</title>
       <programlisting role="php">


Reply via email to