Lines Matching refs:len
68 this = len(self.pred)
88 while ix >= len(self.pred):
109 if len(b) < len(a): a, b = b, a
110 res = b[:len(b) - len(a)]
111 for i in range(len(a)):
112 res.append(max(a[i], b[i + len(b) - len(a)]))
117 for ix in range(len(pattern)):
199 if len(succ):
229 while ix < len(result):
247 dedup_ix = [0] * len(self.bfs_order)
248 for ix in reversed(range(len(self.bfs_order))):
265 print(len(uniques), 'unique nodes,', len(self.bfs_order), 'total')
285 if len(l) > 2:
289 assert len(l) == 2, 'expected 2 chars in chr'
304 trie_off = alphabet_off + len(alphabet)
305 pattern_off = trie_off + len(trie)
306 file_size = pattern_off + len(pattern)
327 result = [struct.pack('<2I', 1, len(ch_map))]
332 if len(binary) % 4 != 0:
333 binary += b'\x00' * (4 - len(binary) % 4)
383 while shift < len(pat) and pat[len(pat) - shift - 1] == 0:
385 rawpat = pat_str[:len(pat) - shift]
389 raw_pat_size += len(rawpat)
390 data = (len(rawpat) << 26) | (shift << 20) | raw_patmap[rawpat]
391 patmap[pat_str] = len(pat_array)
393 data = [0, len(pat_array), 16 + 4 * len(pat_array), raw_pat_size]
440 assert len(lowercase) == 1, 'expected 1 lowercase character'
441 assert 0 <= len(uppercase) <= 1, 'expected 0 or 1 uppercase character'
465 for i in range(len(s) + 1):
466 pat_off = i - 1 + len(pat) - len(s)
480 if i < len(s):