479 @param pairs list containing pairs of positions |
479 @param pairs list containing pairs of positions |
480 @type list of tuple of (int, int) |
480 @type list of tuple of (int, int) |
481 @return flag indicating the position is in between |
481 @return flag indicating the position is in between |
482 @rtype bool |
482 @rtype bool |
483 """ |
483 """ |
484 for posLeft, posRight in pairs: |
484 return any(posLeft < posChar < posRight |
485 if posLeft < posChar < posRight: |
485 for (posLeft, posRight) in pairs) |
486 return True |
|
487 |
|
488 return False |
|
489 |
486 |
490 def __findQuotePosition(self, text): |
487 def __findQuotePosition(self, text): |
491 """ |
488 """ |
492 Private method to find the start and end position of pairs of quotes. |
489 Private method to find the start and end position of pairs of quotes. |
493 |
490 |