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/charsets/ASCII_EBCDIC.h

    r18 r22  
    77    Free License 3.0.
    88   
    9     This is a generated file using bytelexgen.py.  Do not edit.
     9    This is a generated file using ASCII_EBCDIC.py.  Do not edit.
    1010
    1111*/
    1212
    1313#include <stdint.h>
    14 
    15 enum CharBase {Native, ASCII, EBCDIC};
    16 
    17 template<CharBase C, unsigned char c> struct Ord;
    18 
    19 template<unsigned char c>
    20 struct Ord<Native, c> {static uint8_t const value = (uint8_t) c;};
     14#include "../xmlparam.h"
     15
     16template<CodeUnit_Base C, unsigned char c> struct Ord;
     17
    2118
    2219template<> struct Ord<ASCII,'\0'> {static uint8_t const value = 0x0;};
     
    216213// the property that a single case fold bit exists and is the same
    217214// for all letters. 
    218 template <CharBase CS>
     215template <CodeUnit_Base C>
    219216struct CaseFoldBit
    220   {static uint8_t const value = Ord<CS, 'a'>::value ^ Ord<CS, 'A'>::value;};
     217  {static uint8_t const value = Ord<C, 'a'>::value ^ Ord<C, 'A'>::value;};
    221218
    222219#endif
Note: See TracChangeset for help on using the changeset viewer.