| |
|
| java.lang.Object com.ibm.icu.impl.PrettyPrinter
PrettyPrinter | public class PrettyPrinter (Code) | | Provides more flexible formatting of UnicodeSet patterns.
|
isCompressRanges | public boolean isCompressRanges()(Code) | | |
setCompressRanges | public PrettyPrinter setCompressRanges(boolean compressRanges)(Code) | | Parameters: compressRanges - if you want abcde instead of a-e, make this false |
setOrdering | public PrettyPrinter setOrdering(Comparator ordering)(Code) | | Parameters: ordering - the resulting ordering of the list of characters in the pattern |
setSpaceComparator | public PrettyPrinter setSpaceComparator(Comparator spaceComp)(Code) | | Parameters: spaceComp - if the comparison returns non-zero, then a space will be inserted between characters this, for chaining |
setToQuote | public PrettyPrinter setToQuote(UnicodeSet toQuote)(Code) | | a UnicodeSet of extra characters to quote with \\uXXXX-style escaping (will automatically quote pattern whitespace)
Parameters: toQuote - |
toPattern | public String toPattern(UnicodeSet uset)(Code) | | Get the pattern for a particular set.
Parameters: uset - formatted UnicodeSet |
|
|
|