(bug 13140) Show parent categories in category namespace
[lhc/web/wiklou.git] / includes / StringUtils.php
index 4c4d219..374fb00 100644 (file)
@@ -1,5 +1,7 @@
 <?php
-
+/**
+ * A collection of static methods to play with strings.
+ */
 class StringUtils {
        /**
         * Perform an operation equivalent to 
@@ -50,7 +52,8 @@ class StringUtils {
                $encEnd = preg_quote( $endDelim, '!' );
                $strcmp = strpos( $flags, 'i' ) === false ? 'strcmp' : 'strcasecmp';
                $endLength = strlen( $endDelim );
-
+               $m = array();
+               
                while ( $inputPos < strlen( $subject ) && 
                  preg_match( "!($encStart)|($encEnd)!S$flags", $subject, $m, PREG_OFFSET_CAPTURE, $inputPos ) ) 
                {
@@ -297,4 +300,4 @@ class ReplacementArray {
        }
 }
 
-?>
+