Lines Matching defs:ranges
54 # Double-width emoji ranges
168 # Group consecutive code points into ranges
169 ranges = []
175 ranges.append((start, prev))
180 ranges.append((start, prev))
181 return ranges
183 # Extract ranges for each width
194 non-BMP), with zero-width and double-width ranges merged together. The
199 zero_width_ranges: List of (start, end) ranges for zero-width characters
200 double_width_ranges: List of (start, end) ranges for double-width characters
210 # Function to split ranges into BMP (16-bit) and non-BMP (above 16-bit)
211 def split_ranges_by_size(ranges):
215 for start, end in ranges:
227 # Split ranges into BMP and non-BMP
231 # Merge zero- and double-width ranges per region, tagging each with its
291 * Zero-width and double-width ranges are merged into one sorted-by-`first`
301 /* Combined zero- and double-width ranges
314 /* Combined zero- and double-width ranges (non-BMP, U+10000 and above).
351 print(f"- {n_zero} zero-width ranges covering ~{zero_width_count} code points")
352 print(f"- {n_double} double-width ranges covering ~{double_width_count} code points")
353 print(f"- {n_zero + n_double} merged ranges total")