Lines Matching refs:buckets
184 list overlaps with another's width list, those buckets can be merged via `try_extend`."""
230 same bucket. Returns a list of the buckets in increasing order of those bits."""
233 buckets = [Bucket() for _ in range(0, 2 ** num_bits)]
236 buckets[(codepoint >> low_bit) & mask].append(codepoint, width)
237 return buckets
245 Typically, tables contain a list of buckets of codepoints. Bucket `i`'s codepoints should
248 key to compression is that two different buckets in two different sub-tables may have the
252 discard the buckets and convert the entries into `EffectiveWidth` values."""
267 buckets = []
269 buckets.extend(make_buckets(entries, self.low_bit, self.cap_bit))
271 for bucket in buckets:
286 their buckets. Assumes that no bucket contains codepoints with different widths."""
290 def buckets(self):
291 """Returns an iterator over this table's buckets."""
320 entry_groups = map(lambda bucket: bucket.entries(), table.buckets())
436 new_subtable_count = len(table.buckets())