Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

lineBreakLengthAt

function lineBreakLengthAt(text, index): number;

Defined in: packages/engine/src/utilities/Strings.ts:61

The length of the line break that starts at index, or 0 when none does.

ParameterTypeDescription
textstringThe document.
indexnumberA position in it.

number

2 for a CRLF pair, 1 for a lone CR or LF, 0 otherwise.