Lines Matching refs:splittable
294 splittable = charset.to_splittable(s)
295 encoded = charset.from_splittable(splittable, True)
326 first = charset.from_splittable(splittable[:splitpnt], False)
327 last = charset.from_splittable(splittable[splitpnt:], False)
330 first, last = _binsplit(splittable, charset, maxlinelen)
494 def _binsplit(splittable, charset, maxlinelen):
496 j = len(splittable)
499 # 1. splittable[:k] fits for all k <= i (note that we *assume*,
500 # at the start, that splittable[:0] fits).
501 # 2. splittable[:k] does not fit for any k > j (at the start,
502 # this means we shouldn't look at any k > len(splittable)).
503 # 3. We don't know about splittable[:k] for k in i+1..j.
507 chunk = charset.from_splittable(splittable[:m], True)
515 # i == j. Invariant #1 implies that splittable[:i] fits, and
516 # invariant #2 implies that splittable[:i+1] does not fit, so i
518 first = charset.from_splittable(splittable[:i], False)
519 last = charset.from_splittable(splittable[i:], False)