Returns a function that splits text according to the specified ranges.


Splitter.SplitTextByRanges(ranges as list) as function  


Argument Description
ranges The ranges to split on.


  • Each item in ranges should specify a tuple of offset and length (where offset zero refers to the first character). The subset of characters of the line denoted by each tuple is returned as a separate item. If the offset or length is less than zero, an error is thrown. Otherwise, if the tuple is out of range of the line, spaces are used to fill out the value. Therefore, the list returned will have the same cardinality as ranges, and each item will be of the length specified in the corresponding tuple. There is no checking for overlap of tuple ranges.