Lines Matching refs:ucs4
44 def add_char(self, ucs4):
45 assert ucs4 < 0x01000000
46 leaf_num = ucs4 >> 8
52 leaf[(ucs4 & 0xff) >> 5] |= (1 << (ucs4 & 0x1f))
53 #print('{:08x} [{:04x}] --> {}'.format(ucs4, ucs4>>8, leaf))
55 def del_char(self, ucs4):
56 assert ucs4 < 0x01000000
57 leaf_num = ucs4 >> 8
60 leaf[(ucs4 & 0xff) >> 5] &= ~(1 << (ucs4 & 0x1f))
62 #print('{:08x} [{:04x}] --> {}'.format(ucs4, ucs4>>8, leaf))
131 for ucs4 in range(start, end+1):
133 charset.del_char(ucs4)
135 charset.add_char(ucs4)