defaultBreak

fun defaultBreak(text: String, length: <Error class: unknown class>, analysis: Analysis? = null, attrs: LogAttr, attrsLen: <Error class: unknown class>)

This is the default break algorithm.

It applies rules from the Unicode Line Breaking Algorithm without language-specific tailoring, therefore the @analyis argument is unused and can be null.

See func@Pango.tailor_break for language-specific breaks.

See func@Pango.attr_break for attribute-based customization.

Parameters

text

text to break. Must be valid UTF-8

length

length of text in bytes (may be -1 if @text is nul-terminated)

analysis

a PangoAnalysis structure for the @text

attrs

logical attributes to fill in

attrsLen

size of the array passed as @attrs