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) |
java.text.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(java.text.CharacterIterator newText) |
void |
setText(java.lang.CharSequence newText)
Sets the text as
CharSequence . |
void |
setText(java.lang.String newText) |
clone, getAvailableLocales, getAvailableULocales, getBreakInstance, getCharacterInstance, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getLineInstance, getLocale, getSentenceInstance, getSentenceInstance, getSentenceInstance, getTitleInstance, getTitleInstance, getTitleInstance, getWordInstance, getWordInstance, getWordInstance, isBoundary, registerInstance, registerInstance, unregister
public CommonWordIterator(boolean camelCase)
protected CommonBreakIterator createIteratorDelegate(boolean camelCase)
public int first()
first
in class com.ibm.icu.text.BreakIterator
public int last()
last
in class com.ibm.icu.text.BreakIterator
public int next(int n)
next
in class com.ibm.icu.text.BreakIterator
public int next()
next
in class com.ibm.icu.text.BreakIterator
public int previous()
previous
in class com.ibm.icu.text.BreakIterator
public int preceding(int offset)
preceding
in class com.ibm.icu.text.BreakIterator
public int following(int offset)
following
in class com.ibm.icu.text.BreakIterator
protected 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.BreakIterator
public java.text.CharacterIterator getText()
getText
in class com.ibm.icu.text.BreakIterator
public void setText(java.lang.CharSequence newText)
CharSequence
.newText
- the new textpublic void setText(java.text.CharacterIterator newText)
setText
in class com.ibm.icu.text.BreakIterator
public void setText(java.lang.String newText)
setText
in class com.ibm.icu.text.BreakIterator