Lines Matching refs:char

149     for char in unicode.chars:
150 record = unicode.table[char]
168 index[char] = i
181 for char in unicode.chars:
182 record = unicode.table[char]
187 raise Exception("character %x has a decomposition too large for nfd_nfkd" % char)
204 char not in unicode.exclusions and \
209 comp_pairs.append((l,r,char))
218 decomp_index[char] = i
251 for f,l,char in comp_pairs:
254 comp_data[f*total_last+l] = char
298 fprint("const char *_PyUnicode_CategoryNames[] = {")
304 fprint("const char *_PyUnicode_BidirectionalNames[] = {")
310 fprint("const char *_PyUnicode_EastAsianWidthNames[] = {")
316 fprint("static const char *decomp_prefix[] = {")
405 for char in unicode.chars:
406 record = unicode.table[char]
419 linebreaks.append(char)
422 spaces.append(char)
427 if char == ord(" ") or category[0] not in ("C", "Z"):
437 sc = unicode.special_casing.get(char)
438 cf = unicode.case_folding.get(char, [char])
442 upper = char
446 lower = char
457 upper = upper - char
458 lower = lower - char
459 title = title - char
494 numeric.setdefault(record.numeric_value, []).append(char)
503 index[char] = i
611 for char in unicode.chars:
612 record = unicode.table[char]
616 names[char] = name + chr(0)
626 for char in unicode.chars:
627 name = names[char]
700 for char in unicode.chars:
701 name = names[char]
704 phrasebook_offset[char] = len(phrasebook)
721 for char in unicode.chars:
722 record = unicode.table[char]
726 data.append((name, char))
917 for char in range(first, last+1):
918 yield char
949 for char in expand_range(char_range):
950 yield char, rest
1005 char = int(s[0], 16)
1006 table[char] = from_row(s)
1045 for char, name, abbrev in UcdFile(NAME_ALIASES, version):
1046 char = int(char, 16)
1047 self.aliases.append((name, char))
1061 chars = tuple(int(char, 16) for char in chars.split())
1073 for char, in UcdFile(COMPOSITION_EXCLUSIONS, version):
1074 char = int(char, 16)
1075 self.exclusions[char] = 1
1078 for char, (width,) in UcdFile(EASTASIAN_WIDTH, version).expanded():
1079 widths[char] = width
1085 for char, (p,) in UcdFile(DERIVED_CORE_PROPERTIES, version).expanded():
1086 if table[char]:
1089 table[char].binary_properties.add(p)
1094 for char in expand_range(char_range):
1095 table[char].binary_properties.add('Line_Break')
1112 for char in expand_range(s[0]):
1113 assert not (quickchecks[char]>>quickcheck_shift)&3
1114 quickchecks[char] |= quickcheck
1146 lower = [int(char, 16) for char in data[1].split()]
1147 title = [int(char, 16) for char in data[2].split()]
1148 upper = [int(char, 16) for char in data[3].split()]
1156 cf[c] = [int(char, 16) for char in data[2].split()]
1267 file.write("unsigned char")