VirtualBox

Changeset 13888

Show
Ignore:
Timestamp:
11/05/08 20:29:12 (2 months ago)
Author:
vboxsync
Message:

warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/libs/xpcom18a4/xpcom/string/src/nsReadableUtils.cpp

    r1 r13888  
    591591 
    592592                  // 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)) )) 
    596596                     nonchar = PR_FALSE; 
    597597 
    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)
    600600                    return PR_FALSE; // Not UTF-8 string 
    601601                  overlong = surrogate = PR_FALSE; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy