This class is not intended for public subclassing.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static final FilteredBreakIteratorBuilder | |
| public static final FilteredBreakIteratorBuilder | Returns: the new builderthe locale. where)Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale. |
| public static final FilteredBreakIteratorBuilder | Returns: the new builderthe locale. where)Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale. |
| public abstract boolean | Returns: true if the string was not present and now added, false if the call was a no-op because the string was already being suppressed.the string to suppress, such as "Mr." str)Suppress a certain string from being the end of a segment. |
| public abstract boolean | Returns: true if the string was present and now removed, false if the call was a no-op because the string was not being suppressed.the str the string to unsuppress, such as "Mr." str)Stop suppressing a certain string from being the end of the segment. |
| public abstract BreakIterator | Returns: the new BreakIteratorthe break iterator to wrap wrappedBreakIterator)Wrap (adopt) an existing break iterator in a new filtered instance. |
| FilteredBreakIteratorBuilder | back to summary |
|---|---|
| protected FilteredBreakIteratorBuilder()
Deprecated internal to ICU For subclass use
| |
| getEmptyInstance | back to summary |
|---|---|
| public static final FilteredBreakIteratorBuilder getEmptyInstance() Construct an empty FilteredBreakIteratorBuilder. In this state, it will not suppress any segment boundaries.
| |
| getInstance | back to summary |
|---|---|
| public static final FilteredBreakIteratorBuilder getInstance(Locale where) Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale. The rules are taken from CLDR exception data for the locale, see http://www.unicode.org/reports/tr35/tr35-general.html#Segmentation_Exceptions This is the equivalent of calling createInstance(UErrorCode&) and then repeatedly calling addNoBreakAfter(...) with the contents of the CLDR exception data.
| |
| getInstance | back to summary |
|---|---|
| public static final FilteredBreakIteratorBuilder getInstance(ULocale where) Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale. The rules are taken from CLDR exception data for the locale, see http://www.unicode.org/reports/tr35/tr35-general.html#Segmentation_Exceptions This is the equivalent of calling createInstance(UErrorCode&) and then repeatedly calling addNoBreakAfter(...) with the contents of the CLDR exception data.
| |
| suppressBreakAfter | back to summary |
|---|---|
| public abstract boolean suppressBreakAfter(CharSequence str) Suppress a certain string from being the end of a segment. For example, suppressing "Mr.", then segments ending in "Mr." will not be returned by the iterator.
| |
| unsuppressBreakAfter | back to summary |
|---|---|
| public abstract boolean unsuppressBreakAfter(CharSequence str) Stop suppressing a certain string from being the end of the segment. This function does not create any new segment boundaries, but only serves to un-do the effect of earlier calls to suppressBreakAfter, or to un-do the effect of locale data which may be suppressing certain strings.
| |
| wrapIteratorWithFilter | back to summary |
|---|---|
| public abstract BreakIterator wrapIteratorWithFilter(BreakIterator wrappedBreakIterator) Wrap (adopt) an existing break iterator in a new filtered instance. Note that the wrappedBreakIterator is adopted by the new BreakIterator and should no longer be used by the caller. The FilteredBreakIteratorBuilder may be reused.
| |