Uses of Class
com.ibm.icu.text.UnicodeSet
Packages that use UnicodeSet
Package
Description
Enhanced charset conversion support.
Enhanced character property and surrogate support.
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
International calendars and other utility classes.
-
Uses of UnicodeSet in com.ibm.icu.charset
Methods in com.ibm.icu.charset with parameters of type UnicodeSetModifier and TypeMethodDescriptionvoid
CharsetICU.getUnicodeSet
(UnicodeSet setFillIn, int which) Returns the set of Unicode code points that can be converted by an ICU Converter.Constructors in com.ibm.icu.charset with parameters of type UnicodeSetModifierConstructorDescriptionCharsetSelector
(List<String> charsetList, UnicodeSet excludedCodePoints, int mappingTypes) Construct a CharsetSelector from a list of charset names. -
Uses of UnicodeSet in com.ibm.icu.lang
Methods in com.ibm.icu.lang that return UnicodeSetModifier and TypeMethodDescriptionstatic final UnicodeSet
CharacterProperties.getBinaryPropertySet
(int property) Returns a frozen UnicodeSet for a binary property. -
Uses of UnicodeSet in com.ibm.icu.text
Fields in com.ibm.icu.text declared as UnicodeSetModifier and TypeFieldDescriptionstatic final UnicodeSet
UnicodeSet.ALL_CODE_POINTS
Constant for the set of all code points.static final UnicodeSet
UnicodeSet.EMPTY
Constant for the empty set.static final UnicodeSet
SpoofChecker.INCLUSION
Security Profile constant from UTS 39 for use inSpoofChecker.Builder.setAllowedChars(com.ibm.icu.text.UnicodeSet)
.SpoofChecker.CheckResult.numerics
The numerics found in the string, if MIXED_NUMBERS was set; otherwise null.static final UnicodeSet
SpoofChecker.RECOMMENDED
Security Profile constant from UTS 39 for use inSpoofChecker.Builder.setAllowedChars(com.ibm.icu.text.UnicodeSet)
.Methods in com.ibm.icu.text that return UnicodeSetModifier and TypeMethodDescriptionfinal UnicodeSet
UnicodeSet.add
(int c) Adds the specified character to this set if it is not already present.UnicodeSet.add
(int start, int end) Adds the specified range to this set if it is not already present.final UnicodeSet
UnicodeSet.add
(CharSequence s) Adds the specified multicharacter to this set if it is not already present.Add the contents of the collection (as strings) into this UnicodeSet.UnicodeSet.addAll
(int start, int end) Adds all characters in range (uses preferred naming convention).UnicodeSet.addAll
(UnicodeSet c) Adds all of the elements in the specified set to this set if they're not already present.final UnicodeSet
UnicodeSet.addAll
(CharSequence s) Adds each of the characters in this string to the set.Add a collection (as strings) into this UnicodeSet.<T extends CharSequence>
UnicodeSetUnicodeSet.addAll
(T... collection) UnicodeSet.addBridges
(UnicodeSet dontCare) Deprecated.This API is ICU internal only.UnicodeSet.applyIntPropertyValue
(int prop, int value) Modifies this set to contain those code points which have the given value for the given binary or enumerated property, as returned by UCharacter.getIntPropertyValue.final UnicodeSet
UnicodeSet.applyPattern
(String pattern) Modifies this set to represent the set specified by the given pattern.UnicodeSet.applyPattern
(String pattern, boolean ignoreWhitespace) Modifies this set to represent the set specified by the given pattern, optionally ignoring whitespace.UnicodeSet.applyPattern
(String pattern, int options) Modifies this set to represent the set specified by the given pattern, optionally ignoring whitespace.UnicodeSet.applyPattern
(String pattern, ParsePosition pos, SymbolTable symbols, int options) Deprecated.This API is ICU internal only.UnicodeSet.applyPropertyAlias
(String propertyAlias, String valueAlias) Modifies this set to contain those code points which have the given value for the given property.UnicodeSet.applyPropertyAlias
(String propertyAlias, String valueAlias, SymbolTable symbols) Modifies this set to contain those code points which have the given value for the given property.UnicodeSet.clear()
Removes all of the elements from this set.UnicodeSet.cloneAsThawed()
Clone a thawed version of this class, according to the Freezable interface.UnicodeSet.closeOver
(int attribute) Close this set over the given attribute.UnicodeSet.compact()
Reallocate this objects internal structures to take up the least possible space, without changing this object's value.UnicodeSet.complement()
This is equivalent tocomplement(MIN_VALUE, MAX_VALUE)
.final UnicodeSet
UnicodeSet.complement
(int c) Complements the specified character in this set.UnicodeSet.complement
(int start, int end) Complements the specified range in this set.final UnicodeSet
UnicodeSet.complement
(CharSequence s) Complement the specified string in this set.UnicodeSet.complementAll
(UnicodeSet c) Complements in this set all elements contained in the specified set.final UnicodeSet
UnicodeSet.complementAll
(CharSequence s) Complement EACH of the characters in this string.UnicodeSet.freeze()
Freeze this class, according to the Freezable interface.static UnicodeSet
UnicodeSet.from
(CharSequence s) Makes a set from a multicharacter string.static UnicodeSet
UnicodeSet.fromAll
(CharSequence s) Makes a set from each of the characters in the string.SpoofChecker.getAllowedChars()
Get a UnicodeSet for the characters permitted in an identifier.Transliterator.getFilterAsUnicodeSet
(UnicodeSet externalFilter) Deprecated.This API is ICU internal only.final UnicodeSet
Transliterator.getSourceSet()
Returns the set of all characters that may be modified in the input text by this Transliterator.Collator.getTailoredSet()
Returns a UnicodeSet that contains all the characters and sequences tailored in this collator.RuleBasedCollator.getTailoredSet()
Get a UnicodeSet that contains all the characters and sequences tailored in this collator.Transliterator.getTargetSet()
Returns the set of all characters that may be generated as replacement text by this transliterator.UnicodeSetSpanner.getUnicodeSet()
Returns the UnicodeSet used for processing.protected UnicodeSet
Transliterator.handleGetSourceSet()
Framework method that returns the set of all characters that may be modified in the input text by this Transliterator, ignoring the effect of this object's filter.final UnicodeSet
UnicodeSet.remove
(int c) Removes the specified character from this set if it is present.UnicodeSet.remove
(int start, int end) Removes the specified range from this set if it is present.final UnicodeSet
UnicodeSet.remove
(CharSequence s) Removes the specified string from this set if it is present.UnicodeSet.removeAll
(UnicodeSet c) Removes from this set all of its elements that are contained in the specified set.final UnicodeSet
UnicodeSet.removeAll
(CharSequence s) Remove EACH of the characters in this string.<T extends CharSequence>
UnicodeSetfinal UnicodeSet
UnicodeSet.removeAllStrings()
Remove all strings from this UnicodeSetfinal UnicodeSet
UnicodeSet.retain
(int c) Retain the specified character from this set if it is present.UnicodeSet.retain
(int start, int end) Retain only the elements in this set that are contained in the specified range.final UnicodeSet
UnicodeSet.retain
(CharSequence cs) Retain the specified string in this set if it is present.UnicodeSet.retainAll
(UnicodeSet c) Retains only the elements in this set that are contained in the specified set.final UnicodeSet
UnicodeSet.retainAll
(CharSequence s) Retains EACH of the characters in this string.<T extends CharSequence>
UnicodeSetUnicodeSet.set
(int start, int end) Make this object represent the rangestart - end
.UnicodeSet.set
(UnicodeSet other) Make this object represent the same set asother
.Methods in com.ibm.icu.text with parameters of type UnicodeSetModifier and TypeMethodDescriptionUnicodeSet.addAll
(UnicodeSet c) Adds all of the elements in the specified set to this set if they're not already present.UnicodeSet.addBridges
(UnicodeSet dontCare) Deprecated.This API is ICU internal only.AlphabeticIndex.addLabels
(UnicodeSet additions) Add more index characters (aside from what are in the locale)void
UnicodeMatcher.addMatchSetTo
(UnicodeSet toUnionTo) Union the set of all characters that may be matched by this object into the given set.void
UnicodeSet.addMatchSetTo
(UnicodeSet toUnionTo) Implementation of UnicodeMatcher API.void
RuleBasedTransliterator.addSourceTargetSet
(UnicodeSet filter, UnicodeSet sourceSet, UnicodeSet targetSet) Deprecated.This API is ICU internal only.void
Transliterator.addSourceTargetSet
(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet) Deprecated.This API is ICU internal only.boolean
UnicodeSet.XSymbolTable.applyPropertyAlias
(String propertyName, String propertyValue, UnicodeSet result) Override the interpretation of the sequence [:propertyName=propertyValue:] (and its negated and Perl-style variant).int
UnicodeSet.compareTo
(UnicodeSet o) Compares UnicodeSets, where shorter come first, and otherwise lexicographically (according to the comparison of the first characters that differ).int
UnicodeSet.compareTo
(UnicodeSet o, UnicodeSet.ComparisonStyle style) Compares UnicodeSets, in three different ways.UnicodeSet.complementAll
(UnicodeSet c) Complements in this set all elements contained in the specified set.boolean
UnicodeSet.containsAll
(UnicodeSet b) Returns true if this set contains all the characters and strings of the given set.boolean
UnicodeSet.containsNone
(UnicodeSet b) Returns true if none of the characters or strings in this UnicodeSet appears in the string.final boolean
UnicodeSet.containsSome
(UnicodeSet s) Returns true if this set contains one or more of the characters and strings of the given set.void
RuleBasedCollator.getContractionsAndExpansions
(UnicodeSet contractions, UnicodeSet expansions, boolean addPrefixes) Gets unicode sets containing contractions and/or expansions of a collatorTransliterator.getFilterAsUnicodeSet
(UnicodeSet externalFilter) Deprecated.This API is ICU internal only.UnicodeSet.removeAll
(UnicodeSet c) Removes from this set all of its elements that are contained in the specified set.void
UnicodeSetIterator.reset
(UnicodeSet uset) Sets this iterator to visit the elements of the given set and resets it to the start of that set.UnicodeSet.retainAll
(UnicodeSet c) Retains only the elements in this set that are contained in the specified set.UnicodeSet.set
(UnicodeSet other) Make this object represent the same set asother
.SpoofChecker.Builder.setAllowedChars
(UnicodeSet chars) Limit the acceptable characters to those specified by a Unicode Set.static String[]
UnicodeSet.toArray
(UnicodeSet set) Add the contents of the UnicodeSet (as strings) into an array.Constructors in com.ibm.icu.text with parameters of type UnicodeSetModifierConstructorDescriptionFilteredNormalizer2
(Normalizer2 n2, UnicodeSet filterSet) Constructs a filtered normalizer wrapping any Normalizer2 instance and a filter set.UnicodeSet
(UnicodeSet other) Constructs a copy of an existing set.Create an iterator over the given set.UnicodeSetSpanner
(UnicodeSet source) Create a spanner from a UnicodeSet. -
Uses of UnicodeSet in com.ibm.icu.util
Methods in com.ibm.icu.util that return UnicodeSetModifier and TypeMethodDescriptionLocaleData.getExemplarSet
(int options, int extype) Returns the set of exemplar characters for a locale.static UnicodeSet
LocaleData.getExemplarSet
(ULocale locale, int options) Returns the set of exemplar characters for a locale.static UnicodeSet
LocaleData.getExemplarSet
(ULocale locale, int options, int extype) Returns the set of exemplar characters for a locale.Methods in com.ibm.icu.util with parameters of type UnicodeSetModifier and TypeMethodDescriptionStringTokenizer.nextToken
(UnicodeSet delim) Returns the next token in this string tokenizer's string.Constructors in com.ibm.icu.util with parameters of type UnicodeSetModifierConstructorDescriptionStringTokenizer
(String str, UnicodeSet delim) Constructs a string tokenizer for the specified string.StringTokenizer
(String str, UnicodeSet delim, boolean returndelims) Constructs a string tokenizer for the specified string.StringTokenizer
(String str, UnicodeSet delim, boolean returndelims, boolean coalescedelims) Deprecated.This API is ICU internal only.