helly           Sun Jul 16 23:45:30 2006 UTC

  Modified files:              
    /php-src/ext/spl/internal   recursiveregexiterator.inc 
                                regexiterator.inc 
  Log:
  - Update docu
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/internal/recursiveregexiterator.inc?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/internal/recursiveregexiterator.inc
diff -u php-src/ext/spl/internal/recursiveregexiterator.inc:1.1 
php-src/ext/spl/internal/recursiveregexiterator.inc:1.2
--- php-src/ext/spl/internal/recursiveregexiterator.inc:1.1     Sun Jul 16 
19:16:40 2006
+++ php-src/ext/spl/internal/recursiveregexiterator.inc Sun Jul 16 23:45:29 2006
@@ -23,7 +23,13 @@
         * Constructs a regular expression filter around an iterator whose 
         * elemnts or keys are strings.
         *
-        * @param it     Object that implements at least
+        * @param it          inner iterator
+        * @param regex       the regular expression to match
+        * @param flags       special flags (self::USE_KEY)
+        * @param mode        operation mode (one of self::MATCH, 
self::GET_MATCH, 
+        *                    self::ALL_MATCHES, self::SPLIT)
+        * @param preg_flags  global PREG_* flags, see preg_match(), 
+        *                    preg_match_all(), preg_split()
         */
        function __construct(RecursiveIterator $it, $regex, $flags = 0, $mode = 
0, $preg_flags = 0) {
                parent::__construct($it, $regex, $flags, $mode, $preg_flags);
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/internal/regexiterator.inc?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/spl/internal/regexiterator.inc
diff -u php-src/ext/spl/internal/regexiterator.inc:1.2 
php-src/ext/spl/internal/regexiterator.inc:1.3
--- php-src/ext/spl/internal/regexiterator.inc:1.2      Sun Jul 16 20:52:20 2006
+++ php-src/ext/spl/internal/regexiterator.inc  Sun Jul 16 23:45:29 2006
@@ -19,24 +19,33 @@
  */
 class RegexIterator implements FilterIterator
 {
-       const USE_KEY     = 0x00000001;
+       const USE_KEY     = 0x00000001; /**< If present in $flags the the key 
is 
+                                            used rather then the current 
value. */
 
-       const MATCH       = 0;
-       const GET_MATCH   = 1;
-       const ALL_MATCHES = 2;
-       const SPLIT       = 3;
+       const MATCH       = 0; /**< Mode: Executed a plain match only      */
+       const GET_MATCH   = 1; /**< Mode: Return the first matche (if any) */
+       const ALL_MATCHES = 2; /**< Mode: Return all matches (if any)      */
+       const SPLIT       = 3; /**< Mode: Return the split values (if any) */
        
        private $regex;     /**< the regular expression to match against */
-       private $flags;     /**< special flags (USE_KEY) */
-       private $mode;      /**< operation mode (MATCH, GET_MATCH, ALL_MATCHES, 
SPLIT) */
-       private $preg_flags;/**< PREG_* flags, see preg_match(), 
preg_match_all(), preg_split() */ 
+       private $flags;     /**< special flags (self::USE_KEY) */
+       private $mode;      /**< operation mode (one of self::MATCH, 
+                                self::GET_MATCH, self::ALL_MATCHES, 
self::SPLIT) */
+       private $preg_flags;/**< PREG_* flags, see preg_match(), 
preg_match_all(), 
+                                preg_split() */ 
        private $current;   /**< the value used for current() */
 
        /**
         * Constructs a regular expression filter around an iterator whose 
         * elemnts or keys are strings.
         *
-        * @param it     Object that implements at least
+        * @param it          inner iterator
+        * @param regex       the regular expression to match
+        * @param flags       special flags (self::USE_KEY)
+        * @param mode        operation mode (one of self::MATCH, 
self::GET_MATCH, 
+        *                    self::ALL_MATCHES, self::SPLIT)
+        * @param preg_flags  global PREG_* flags, see preg_match(), 
+        *                    preg_match_all(), preg_split()
         */
        function __construct(Iterator $it, $regex, $flags = 0, $mode = 0, 
$preg_flags = 0) {
                parent::__construct($it);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to