diff options
author | Andrey Hristov <andrey@php.net> | 2002-10-03 18:15:18 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2002-10-03 18:15:18 +0000 |
commit | 52c529c5afd51058349a93287a7879044520c3f5 (patch) | |
tree | dfe9eb1bcd2d7ebb091be2c3d7d55c6f3af47197 /ext/standard/string.c | |
parent | eab0f5965fa9a9b66edd97c6ca1c148534fa8e5b (diff) | |
download | php-git-52c529c5afd51058349a93287a7879044520c3f5.tar.gz |
ws fixes.
#again :)
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 676d3dbcfd..e2c436903e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1616,8 +1616,7 @@ PHP_FUNCTION(substr) if (argc > 2) { convert_to_long_ex(len); l = Z_LVAL_PP(len); - } - else { + } else { l = Z_STRLEN_PP(str); } @@ -2441,8 +2440,7 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_f break; } } - } - else { + } else { for (source = str, end = source+length, target = new_str; source < end; source++) { c = *source; switch (c) { @@ -3431,8 +3429,7 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, int break; } - switch (state) - { + switch (state) { case 1: /* HTML/XML */ lc = '>'; state = 0; @@ -3635,29 +3632,29 @@ PHP_FUNCTION(count_chars) for (inx = 0; inx < 256; inx++) { switch (mymode) { - case 0: - add_index_long(return_value, inx, chars[inx]); - break; - case 1: - if (chars[inx] != 0) { + case 0: add_index_long(return_value, inx, chars[inx]); - } - break; - case 2: - if (chars[inx] == 0) { - add_index_long(return_value, inx, chars[inx]); - } - break; - case 3: - if (chars[inx] != 0) { - retstr[retlen++] = inx; - } - break; - case 4: - if (chars[inx] == 0) { - retstr[retlen++] = inx; - } - break; + break; + case 1: + if (chars[inx] != 0) { + add_index_long(return_value, inx, chars[inx]); + } + break; + case 2: + if (chars[inx] == 0) { + add_index_long(return_value, inx, chars[inx]); + } + break; + case 3: + if (chars[inx] != 0) { + retstr[retlen++] = inx; + } + break; + case 4: + if (chars[inx] == 0) { + retstr[retlen++] = inx; + } + break; } } |