Top Fields Constructors Methods
com.ibm.icu.impl.breakiter

public final Class UnhandledBreakEngine

extends Object
implements LanguageBreakEngine
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.breakiter.LanguageBreakEngine
Imports
java.text.CharacterIterator, com.ibm.icu.impl.CharacterIteration, com.ibm.icu.lang.UCharacter, .UProperty, com.ibm.icu.text.UnicodeSet

Field Summary

Modifier and TypeField and Description
pack-priv volatile UnicodeSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
findBreaks(CharacterIterator
The text to break over. The iterator is left at the end of the run of characters which the engine has handled.
text
,
int
The index of the beginning of the range
startPos
,
int
The index of the possible end of our range. It is possible, however, that the range ends earlier
endPos
,
DictionaryBreakEngine.DequeI
A data structure to receive the break positions.
foundBreaks
,
boolean isPhraseBreaking)

Implements com.ibm.icu.impl.breakiter.LanguageBreakEngine.findBreaks.

Implements the actual breaking logic.
public void
handleChar(int c)

Update the set of unhandled characters to include all that have the same script as c.

public boolean
handles(int
A Unicode codepoint value
c
)

Implements com.ibm.icu.impl.breakiter.LanguageBreakEngine.handles.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fHandledback to summary
pack-priv volatile UnicodeSet fHandled

Constructor Detail

UnhandledBreakEngineback to summary
public UnhandledBreakEngine()

Method Detail

findBreaksback to summary
public int findBreaks(CharacterIterator text, int startPos, int endPos, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking)

Implements com.ibm.icu.impl.breakiter.LanguageBreakEngine.findBreaks.

Doc from com.ibm.icu.impl.breakiter.LanguageBreakEngine.findBreaks.

Implements the actual breaking logic. Find any breaks within a run in the supplied text.

Parameters
text:CharacterIterator

The text to break over. The iterator is left at the end of the run of characters which the engine has handled.

startPos:int

The index of the beginning of the range

endPos:int

The index of the possible end of our range. It is possible, however, that the range ends earlier

foundBreaks:DictionaryBreakEngine.DequeI

A data structure to receive the break positions.

Returns:int

the number of breaks found

Annotations
@Override
handleCharback to summary
public void handleChar(int c)

Update the set of unhandled characters to include all that have the same script as c. May be called concurrently with handles() or findBreaks(). Must not be called concurrently with itself.

handlesback to summary
public boolean handles(int c)

Implements com.ibm.icu.impl.breakiter.LanguageBreakEngine.handles.

Parameters
c:int

Doc from com.ibm.icu.impl.breakiter.LanguageBreakEngine.handles.

A Unicode codepoint value

Returns:boolean

Doc from com.ibm.icu.impl.breakiter.LanguageBreakEngine.handles.

true if the engine can handle this character, false otherwise

Annotations
@Override