Ignore:
Timestamp:
Sep 18, 2008, 2:35:52 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-18 Cameron Zwarich <[email protected]>

Reviewed by Maciej Stachowiak.

Make a Unicode non-breaking space count as a whitespace character in
PCRE. This change was already made in WREC, and it fixes one of the
Mozilla JS tests. Since it is now fixed in PCRE as well, we can check
in a new set of expected test results.

  • pcre/pcre_internal.h: (isSpaceChar):
  • tests/mozilla/expected.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_internal.h

    r34858 r36612  
    381381static inline bool isSpaceChar(UChar c)
    382382{
    383     return c < 128 && (charTypeForChar(c) & ctype_space);
     383    return (c < 128 && (charTypeForChar(c) & ctype_space)) || c == 0x00A0;
    384384}
    385385
Note: See TracChangeset for help on using the changeset viewer.