Top Description Methods
com.ibm.icu.impl.breakiter

public Interface LanguageBreakEngine

Known Direct Implementers
com.ibm.icu.impl.breakiter.UnhandledBreakEngine, com.ibm.icu.impl.breakiter.DictionaryBreakEngine
Imports
java.text.CharacterIterator

The LanguageBreakEngine interface is to be used to implement any language-specific logic for break iteration.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of breaks found
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 the actual breaking logic.

public boolean

Returns:

true if the engine can handle this character, false otherwise
handles
(int
A Unicode codepoint value
c
)

Method Detail

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

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

handlesback to summary
public boolean handles(int c)
Parameters
c:int

A Unicode codepoint value

Returns:boolean

true if the engine can handle this character, false otherwise