Changeset 13888 in vbox for trunk/src/libs/xpcom18a4/xpcom
- Timestamp:
- Nov 5, 2008 7:29:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.