makeSegments

Returns a list of zero or more segments to represent the specified Unicode text string. The result may use various segment modes and switch modes to optimize the length of the bit stream.

Return

a new mutable list (not null) of segments (not null) containing the text

Parameters

text

the text to be encoded, which can be any Unicode string

Throws

if the text is null