Table of contents
TOC
Collapse the table of content
Expand the table of content

Splitter.SplitTextByRanges

Owen Duncan|Last Updated: 4/19/2018

About

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

Splitter.SplitTextByRanges(ranges as list) as function  

Arguments

ArgumentDescription
rangesThe ranges to split on.

Remarks

  • 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.
© 2018 Microsoft