Lines Matching refs:len
72 this = len(self.pred)
92 while ix >= len(self.pred):
113 if len(b) < len(a): a, b = b, a
114 res = b[:len(b) - len(a)]
115 for i in range(len(a)):
116 res.append(max(a[i], b[i + len(b) - len(a)]))
121 for ix in range(len(pattern)):
203 if len(succ):
233 while ix < len(result):
251 dedup_ix = [0] * len(self.bfs_order)
252 for ix in reversed(range(len(self.bfs_order))):
269 print(len(uniques), 'unique nodes,', len(self.bfs_order), 'total')
289 if len(l) > 2:
297 assert len(l) == 2, 'expected 2 chars in chr'
312 trie_off = alphabet_off + len(alphabet)
313 pattern_off = trie_off + len(trie)
314 file_size = pattern_off + len(pattern)
335 result = [struct.pack('<2I', 1, len(ch_map))]
340 if len(binary) % 4 != 0:
341 binary += b'\x00' * (4 - len(binary) % 4)
391 while shift < len(pat) and pat[len(pat) - shift - 1] == 0:
393 rawpat = pat_str[:len(pat) - shift]
397 raw_pat_size += len(rawpat)
398 data = (len(rawpat) << 26) | (shift << 20) | raw_patmap[rawpat]
399 patmap[pat_str] = len(pat_array)
401 data = [0, len(pat_array), 16 + 4 * len(pat_array), raw_pat_size]
451 assert len(lowercase) == 1, 'expected 1 lowercase character'
452 assert 0 <= len(uppercase) <= 1, 'expected 0 or 1 uppercase character'
476 for i in range(len(s) + 1):
477 pat_off = i - 1 + len(pat) - len(s)
491 if i < len(s):