Class Segment
java.lang.Object
com.ibm.icu.segmenter.Segment
A simple struct to represent an element of the segmentation result. The
start and
limit indices correspond to source, the input CharSequence that was
originally passed to the Segmenter. start and limit are inclusive and
exclusive boundaries, respectively.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the subsequence represented by thisSegment
-
Field Details
-
start
public final int start -
limit
public final int limit -
ruleStatus
public final int ruleStatus- See Also:
-
source
-
-
Constructor Details
-
Segment
Segment(int start, int limit, CharSequence source)
-
-
Method Details
-
getSubSequence
Returns the subsequence represented by thisSegment- Returns:
- a new
CharSequenceobject that is the subsequence represented by thisSegment.
-