public abstract class TextBreakIterator extends Object
Fashioned loosely on the ICU break iterator class, the text break iterator can be used to find significant breakpoints in text. The most significant difference is that this class doesn't require an array of characters; instead, the caller supplies a character property iterator.
Currently the caller can request one of two implementation types, through static class methods, in order to find grapheme cluster breaks or word breaks. Note that word breaks are algorithmic only and do not extend to languages like Thai which require dictionary based breaking.
| Modifier and Type | Field and Description |
|---|---|
static int |
DONE |
| Constructor and Description |
|---|
TextBreakIterator() |
| Modifier and Type | Method and Description |
|---|---|
static TextBreakIterator |
createGraphemeInstance(TextCharPropIterator poTextCharPropIterator)
Create a grapheme cluster break iterator.
|
static TextBreakIterator |
createWordInstance(TextCharPropIterator poTextCharPropIterator)
Create a word break iterator.
|
abstract int |
first()
Find the first break (typically the start-of-text).
|
abstract int |
next()
Find the next break.
|
public static final int DONE
public abstract int first()
public abstract int next()
public static TextBreakIterator createGraphemeInstance(TextCharPropIterator poTextCharPropIterator)
poTextCharPropIterator - - Pointer to underlying character property
iterator, used by the grapheme cluster break iterator, to obtain
character properties for analysis.public static TextBreakIterator createWordInstance(TextCharPropIterator poTextCharPropIterator)
poTextCharPropIterator - - Pointer to underlying character property
iterator, used by the word break iterator, to obtain character
properties for analysis.Copyright © 2010 - 2020 Adobe. All Rights Reserved