Package: pango

Function pango:find-paragraph-boundary

Lambda List

pango:find-paragraph-boundary (text)

Syntax

(pango:find-paragraph-boundary text) => index, next

Arguments

text -- a string for the UTF-8 text
index -- an integer for the index of delimiter
next -- an integer for the start of next paragraph

Details

Locates a paragraph boundary in text. A boundary is caused by delimiter characters, such as a newline, carriage return, carriage return-newline pair, or Unicode paragraph separator character.

The index of the run of delimiters is returned in index. The index of the start of the next paragraph (index after all delimiters) is stored in next.

If no delimiters are found, both index and next are filled with the length of text (an index one off the end).
 

See also

2026-03-17