Changeset 13888
- Timestamp:
- 11/05/08 20:29:12 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/libs/xpcom18a4/xpcom/string/src/nsReadableUtils.cpp
r1 r13888 591 591 592 592 // non-character : EF BF [BE-BF] or F[0-7] [89AB]F BF [BE-BF] 593 if ( nonchar && ( !state && c < 0xBE||594 state == 1 && c != 0xBF||595 state == 2 && 0x0F != (0x0F & c) ))593 if ( nonchar && ( (!state && c < 0xBE) || 594 (state == 1 && c != 0xBF) || 595 (state == 2 && 0x0F != (0x0F & c)) )) 596 596 nonchar = PR_FALSE; 597 597 598 if ( !UTF8traits::isInSeq(c) || overlong && c <= olupper||599 surrogate && slower <= c || nonchar && !state)598 if ( !UTF8traits::isInSeq(c) || (overlong && c <= olupper) || 599 (surrogate && slower <= c) || (nonchar && !state) ) 600 600 return PR_FALSE; // Not UTF-8 string 601 601 overlong = surrogate = PR_FALSE;

