com.ibm.icu.text

Class UnicodeFilter

public abstract class UnicodeFilter extends Object implements UnicodeMatcher

UnicodeFilter defines a protocol for selecting a subset of the full range (U+0000 to U+FFFF) of Unicode characters. Currently, filters are used in conjunction with classes like {@link Transliterator} to only process selected characters through a transformation.

UNKNOWN: ICU 2.0

Constructor Summary
protected UnicodeFilter()
(This should not be here; it is declared to make CheckTags happy.
Method Summary
abstract booleancontains(int c)
Returns true for characters that are in the selected subset.
intmatches(Replaceable text, int[] offset, int limit, boolean incremental)
Default implementation of UnicodeMatcher::matches() for Unicode filters.

Constructor Detail

UnicodeFilter

protected UnicodeFilter()

Deprecated: This API is ICU internal only.

(This should not be here; it is declared to make CheckTags happy. Java inserts a synthetic constructor and CheckTags can't tell that it's synthetic.) TODO Remove this when the JDK property implements MemberDoc.isSynthetic

UNKNOWN:

Method Detail

contains

public abstract boolean contains(int c)
Returns true for characters that are in the selected subset. In other words, if a character is to be filtered, then contains() returns false.

UNKNOWN: ICU 2.0

matches

public int matches(Replaceable text, int[] offset, int limit, boolean incremental)
Default implementation of UnicodeMatcher::matches() for Unicode filters. Matches a single 16-bit code unit at offset.

UNKNOWN: ICU 2.0

Copyright (c) 2007 IBM Corporation and others.