* libraries/string.lib.php3:

- Detect U+00A0 as whitespace
This commit is contained in:
Robin Johnson
2002-08-02 03:22:59 +00:00
parent 63d88ad68b
commit 39a386af83
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2002-08-01 Robin Johnson <robbat2@users.sourceforge.net>
* scripts/decode_bug.php3:
- Improvements and PHP3 fixes thanks to Loic
* libraries/string.lib.php3:
- Detect U+00A0 as whitespace
2002-08-01 Marc Delisle <lem9@users.sourceforge.net>
* lang/afrikaans: new language

View File

@@ -216,9 +216,11 @@ if (!defined('PMA_STR_LIB_INCLUDED')) {
$ord_space = 32; //ord(' ')
$ord_tab = 9; //ord('\t')
$ord_CR = 13; //ord('\n')
$ord_NOBR = 160; //ord('U+00A0);
$ord_c = ord($c);
return (($ord_c == $ord_space)
return (($ord_c == $ord_space)
|| ($ord_c == $ord_NOBR)
|| PMA_STR_numberInRangeInclusive($ord_c, $ord_tab, $ord_CR));
} // end of the "PMA_STR_isSpace()" function