Lines Matching full:codes
30 def MakeRanges(codes): argument
34 for c in codes:
49 # def PrintCodes(type, name, codes):
50 # """Print the codes as an array of type named name."""
52 # for c in codes:
56 def PrintGroup(name, codes): argument
57 """Print the data structures for the group of codes.
62 # Split codes into 16-bit ranges and 32-bit ranges.
63 range16 = MakeRanges([c for c in codes if c < 65536])
64 range32 = MakeRanges([c for c in codes if c >= 65536])
97 for name, codes in unicode.Categories().iteritems():
98 ugroups.append(PrintGroup(name, codes))
99 for name, codes in unicode.Scripts().iteritems():
100 ugroups.append(PrintGroup(name, codes))