Splitter.SplitTextByLengths

About

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

Syntax

Splitter.SplitTextByLengths(lengths as list) as function  

Arguments

Argument Description
lengths The 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.