Ignore:
Timestamp:
Aug 2, 2014, 5:01:35 PM (5 years ago)
Author:
cameron
Message:

Add CanonicalCharSetDef? constructor, default UTF-8 basis pattern

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/charset_def.py

    r3944 r3949  
    3232        else: return "CharDef(%s, '\\%X')" % (self.name, ord(self.items[0]))
    3333
     34class CanonicalCharSetDef(CharSetDef):
     35    def __init__(self, name, items, invert = False):
     36        self.name = name
     37        self.items = items
     38        self.complemented = invert
     39
     40
    3441def canonical_range_list(items):
    3542    if items == []: return []
Note: See TracChangeset for help on using the changeset viewer.