Home | Trees | Indices | Help |
|
---|
|
Character offset tools.
Version: $Revision: 1.11 $
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
Splits a comma separated list of character offsets into tuples of integers. Keyword arguments: charOffset -- a string in the format "0-2,5-20" Returns: A list of tuples of two integers each |
Checks whether two ranges (f.e. character offsets overlap) This snippet by Steven D'Aprano is from the forum of www.thescripts.com. Keyword arguments: range1 -- a tuple where range1[0] <= range1[1] range1 -- a tuple where range2[0] <= range2[1] Returns: True (ranges overlap) or False (no overlap) |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 19 18:20:44 2012 | http://epydoc.sourceforge.net |