![JAR search and dependency download from the Maven repository](/logo.png)
com.ibm.icu.text.LanguageBreakEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-client-compiler-deps Show documentation
Show all versions of vaadin-client-compiler-deps Show documentation
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
/*
*******************************************************************************
* Copyright (C) 2012, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.text;
import java.text.CharacterIterator;
import java.util.Stack;
/**
* The LanguageBreakEngine interface is to be used to implement any
* language-specific logic for break iteration.
*/
interface LanguageBreakEngine {
/**
* @param c A Unicode codepoint value
* @param breakType The kind of break iterator that is wanting to make use
* of this engine - character, word, line, sentence
* @return true if the engine can handle this character, false otherwise
*/
public boolean handles(int c, int breakType);
/**
* Implements the actual breaking logic.
* @param text The text to break over
* @param startPos The index of the beginning of our range
* @param endPos The index of the possible end of our range. It is possible,
* however, that our range ends earlier
* @param reverse true iff we are iterating backwards (in a call to
* previous(), for example)
* @param breakType The kind of break iterator that is wanting to make use
* of this engine - character, word, line, sentence
* @param foundBreaks A Stack that the breaks found will be added to
* @return the number of words found
*/
public int findBreaks(CharacterIterator text, int startPos, int endPos,
boolean reverse, int breakType, Stack foundBreaks);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy