hyphenate
Hyphenate word and return a Hyphenation object.
Return
a Hyphenation object representing the hyphenated word or null if word is not hyphenated.
Parameters
word
the word to be hyphenated
remainCharCount
Minimum number of characters allowed before the hyphenation point.
pushCharCount
Minimum number of characters allowed after the hyphenation point.
fun hyphenate(w: CharArray, offset: Int, len0: Int, remainCharCount: Int, pushCharCount: Int): Hyphenation?
Hyphenate word and return an array of hyphenation points.
Return
a Hyphenation object representing the hyphenated word or null if word is not hyphenated.
Parameters
w
char array that contains the word
offset
Offset to first character in word
len
Length of word
remainCharCount
Minimum number of characters allowed before the hyphenation point.
pushCharCount
Minimum number of characters allowed after the hyphenation point.