public class CommonWordIterator
extends com.ibm.icu.text.BreakIterator
org.eclipse.jdt.internal.ui.text.JavaWordIterator.| Constructor and Description |
|---|
CommonWordIterator(boolean camelCase)
Creates a new word iterator.
|
| Modifier and Type | Method and Description |
|---|---|
protected CommonBreakIterator |
createIteratorDelegate(boolean camelCase) |
int |
current() |
protected boolean |
eatFollowingWhitespace(int offset,
int exclusiveEnd) |
int |
first() |
int |
following(int offset) |
CharacterIterator |
getText() |
protected boolean |
isDelimiter(int offset,
int exclusiveEnd)
Returns
true if the given sequence into the underlying text represents a delimiter,
false otherwise. |
protected boolean |
isWhitespace(int offset,
int exclusiveEnd)
Returns
true if the given sequence into the underlying text represents whitespace, but not a
delimiter, false otherwise. |
int |
last() |
int |
next() |
int |
next(int n) |
int |
preceding(int offset) |
int |
previous() |
void |
setText(CharacterIterator newText) |
void |
setText(CharSequence newText)
Sets the text as
CharSequence. |
void |
setText(String newText) |
clone, getAvailableLocales, getAvailableULocales, getBreakInstance, getCharacterInstance, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getLineInstance, getLocale, getRuleStatus, getRuleStatusVec, getSentenceInstance, getSentenceInstance, getSentenceInstance, getTitleInstance, getTitleInstance, getTitleInstance, getWordInstance, getWordInstance, getWordInstance, isBoundary, registerInstance, registerInstance, unregisterpublic CommonWordIterator(boolean camelCase)
protected CommonBreakIterator createIteratorDelegate(boolean camelCase)
public int first()
first in class com.ibm.icu.text.BreakIteratorpublic int last()
last in class com.ibm.icu.text.BreakIteratorpublic int next(int n)
next in class com.ibm.icu.text.BreakIteratorpublic int next()
next in class com.ibm.icu.text.BreakIteratorpublic int previous()
previous in class com.ibm.icu.text.BreakIteratorpublic int preceding(int offset)
preceding in class com.ibm.icu.text.BreakIteratorpublic int following(int offset)
following in class com.ibm.icu.text.BreakIteratorprotected boolean eatFollowingWhitespace(int offset,
int exclusiveEnd)
protected boolean isDelimiter(int offset,
int exclusiveEnd)
true if the given sequence into the underlying text represents a delimiter,
false otherwise.offset - the offsetexclusiveEnd - the end offsettrue if the given range is a delimiterprotected boolean isWhitespace(int offset,
int exclusiveEnd)
true if the given sequence into the underlying text represents whitespace, but not a
delimiter, false otherwise.offset - the offsetexclusiveEnd - the end offsettrue if the given range is whitespacepublic int current()
current in class com.ibm.icu.text.BreakIteratorpublic CharacterIterator getText()
getText in class com.ibm.icu.text.BreakIteratorpublic void setText(CharSequence newText)
CharSequence.newText - the new textpublic void setText(CharacterIterator newText)
setText in class com.ibm.icu.text.BreakIteratorpublic void setText(String newText)
setText in class com.ibm.icu.text.BreakIteratorCopyright © 2016. All Rights Reserved.