Changeset 22 for trunk/src/bytelex.h


Ignore:
Timestamp:
Jan 19, 2008, 3:43:36 PM (11 years ago)
Author:
cameron
Message:

Eliminate "Native" charset; CharBase? => xmlparam:CodeUnit_Base

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bytelex.h

    r19 r22  
    148148template<CharBase C>
    149149inline bool at_XxMmLll_WS(unsigned char x8data[]) {
    150   uint32_t case_mask =
    151     c3int32<Native, CaseFoldBit<C>::value, CaseFoldBit<C>::value, CaseFoldBit<C>::value>::value;
    152   return ((s3int32(x8data) | case_mask) == (c3int32<C, 'x', 'm', 'l'>::value | case_mask)) &&
     150  uint32_t case_mask = ~(CaseFoldBit<C>::value * 0x01010101);
     151  return ((s3int32(x8data) & case_mask) == (c3int32<C, 'x', 'm', 'l'>::value & case_mask)) &&
    153152         at_WhiteSpace<C>(&x8data[3]);
    154153}
Note: See TracChangeset for help on using the changeset viewer.