Changeset 27 for trunk/src/charsets


Ignore:
Timestamp:
Jan 25, 2008, 8:42:04 AM (11 years ago)
Author:
cameron
Message:

parabix-0.39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/charsets/ext_ascii_8.c

    r17 r27  
    2929
    3030int Ext_ASCII_8_Lexer::BOM_size(int rel_pos) {
    31   if (s3int32((unsigned char *) &parsing_engine_data->x8data) == c3int32<Native,0xEF, 0xBB, 0xBF>::value)
    32     return 3;
     31  unsigned char * x8ch = (unsigned char *) parsing_engine_data->x8data;
     32  if ((x8ch[0] == 0xEF) && (x8ch[1] == 0xBB) && (x8ch[2] == 0xBF))
     33      return 3;
    3334  else return 0;
    3435}
Note: See TracChangeset for help on using the changeset viewer.