]> granicus.if.org Git - php/commitdiff
fix folding and ws
authorAntony Dovgal <tony2001@php.net>
Fri, 12 Jan 2007 12:06:33 +0000 (12:06 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 12 Jan 2007 12:06:33 +0000 (12:06 +0000)
ext/mbstring/mbstring.c

index eb73831e9f0a2f64972e29d77aef9ef4016fb64e..be95046cb953d3503843050fa3db21c9fd4a4f75 100644 (file)
@@ -1740,7 +1740,7 @@ PHP_FUNCTION(mb_stripos)
                RETURN_FALSE;
        }
 
- n = php_mb_stripos(0, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC);
      n = php_mb_stripos(0, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC);
 
        if (n >= 0) {
                RETVAL_LONG(n);
@@ -1770,7 +1770,7 @@ PHP_FUNCTION(mb_strripos)
                RETURN_FALSE;
        }
 
- n = php_mb_stripos(1, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC);
      n = php_mb_stripos(1, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC);
 
        if (n >= 0) {
                RETVAL_LONG(n);
@@ -1954,6 +1954,7 @@ PHP_FUNCTION(mb_stristr)
                }
        }
 }
+/* }}} */
 
 /* {{{ proto string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])
    Finds the last occurrence of a character in a string within another, case insensitive */
@@ -1981,7 +1982,7 @@ PHP_FUNCTION(mb_strrichr)
                RETURN_FALSE;
        }
 
- n = php_mb_stripos(1, haystack.val, haystack.len, needle.val, needle.len, 0, from_encoding TSRMLS_CC);
      n = php_mb_stripos(1, haystack.val, haystack.len, needle.val, needle.len, 0, from_encoding TSRMLS_CC);
 
        if (n <0) {
                RETURN_FALSE;
@@ -2006,6 +2007,7 @@ PHP_FUNCTION(mb_strrichr)
                }
        }
 }
+/* }}} */
 
 /* {{{ proto int mb_substr_count(string haystack, string needle [, string encoding])
    Count the number of substring occurrences */
@@ -4252,6 +4254,7 @@ MBSTRING_API int php_mb_gpc_encoding_converter(char **str, int *len, int num, co
 
        return ret ? 0 : -1;
 }
+/* }}} */
 
 /* {{{ MBSTRING_API int php_mb_gpc_encoding_detector()
  */