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

Splitter.SplitTextByLengths

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

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

Splitter.SplitTextByLengths(lengths as list) as function  

Arguments

ArgumentDescription
lengthsThe lengths to split on.

Remarks

  • Each item in lengths should be a non-negative number indicating the number of characters to use for each item. SplitTextByLengths works by computing a set of ranges by adding each subsequent length to compute the next position, and delegating to SplitTextByRanges. The list returned will have the same cardinality as that of the positions.
© 2018 Microsoft