Package: pango

Function pango-find-paragraph-boundary

Lambda List

pango-find-paragraph-boundary (text length paragraph-delimiter-index next-paragraph-start)

Arguments

text -- a string with the UTF-8 text
length -- an integer with the length of text in bytes, or -1 if nul-terminated
paragraph-delimiter-index -- return location for index of delimiter
next-paragraph-start -- return location for 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 paragraph-delimiter-index. The index of the start of the paragraph (index after all delimiters) is stored in next-paragraph-start.

If no delimiters are found, both paragraph-delimiter-index and next-paragraph-start are filled with the length of text (an index one off the end).
2021-1-12