Home | History | Annotate | Download | only in python2.7

Lines Matching refs:alo

135     find_longest_match(alo, ahi, blo, bhi)
136 Find longest matching block in a[alo:ahi] and b[blo:bhi].
350 def find_longest_match(self, alo, ahi, blo, bhi):
351 """Find longest matching block in a[alo:ahi] and b[blo:bhi].
356 alo <= i <= i+k <= ahi
387 If no blocks match, return (alo, blo, 0).
407 besti, bestj, bestsize = alo, blo, 0
413 for i in xrange(alo, ahi):
433 while besti > alo and bestj > blo and \
449 while besti > alo and bestj > blo and \
492 alo, ahi, blo, bhi = queue.pop()
493 i, j, k = x = self.find_longest_match(alo, ahi, blo, bhi)
494 # a[alo:i] vs b[blo:j] unknown
499 if alo < i and blo < j:
500 queue.append((alo, i, blo, j))
910 for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
912 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
914 g = self._dump('-', a, alo, ahi)
918 g = self._dump(' ', a, alo, ahi)
930 def _plain_replace(self, a, alo, ahi, b, blo, bhi):
931 assert alo < ahi and blo < bhi
934 if bhi - blo < ahi - alo:
936 second = self._dump('-', a, alo, ahi)
938 first = self._dump('-', a, alo, ahi)
945 def _fancy_replace(self, a, alo, ahi, b, blo, bhi):
976 for i in xrange(alo, ahi):
997 for line in self._plain_replace(a, alo, ahi, b, blo, bhi):
1010 for line in self._fancy_helper(a, alo, best_i, b, blo, best_j):
1043 def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
1045 if alo < ahi:
1047 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
1049 g = self._dump('-', a, alo, ahi)