Lines Matching refs:cp
95 for cp in range(start, end + 1):
96 width_map[cp] = 0
101 for cp in range(start, end + 1):
102 width_map[cp] = 1
108 for cp in range(block_start, block_end):
110 char = chr(cp)
113 if cp in width_map:
121 width_map[cp] = 0
130 width_map[cp] = 0
134 if cp in KNOWN_ZERO_WIDTH:
135 width_map[cp] = 0
141 width_map[cp] = 2
143 width_map[cp] = 1
146 width_map[cp] = 1
154 for cp in range(start, end + 1):
155 if cp not in width_map or width_map[cp] != 0: # Don't override zero-width
157 char = chr(cp)
158 width_map[cp] = 2
164 points = sorted([cp for cp, width in width_data.items() if width == target_width])
173 for cp in points[1:]:
174 if cp > prev + 1:
176 start = cp
177 prev = cp