Class UtilityExtensions
java.lang.Object
com.ibm.icu.impl.UtilityExtensions
CLOVER:OFF
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendToRule(StringBuilder rule, UnicodeMatcher matcher, boolean escapeUnprintable, StringBuilder quoteBuf) Given a matcher reference, which may be null, append its pattern as a literal to the given rule.static voidappendToRule(StringBuilder rule, String text, boolean isLiteral, boolean escapeUnprintable, StringBuilder quoteBuf) Append the given string to the rule.static StringformatInput(Replaceable input, Transliterator.Position pos) Convenience method.static StringformatInput(ReplaceableString input, Transliterator.Position pos) For debugging purposes; format the given text in the form aaa{bbb|ccc|ddd}eee, where the {} indicate the context start and limit, and the || indicate the start and limit.static StringBuilderformatInput(StringBuilder appendTo, Replaceable input, Transliterator.Position pos) Convenience method.static StringBuilderformatInput(StringBuilder appendTo, ReplaceableString input, Transliterator.Position pos) For debugging purposes; format the given text in the form aaa{bbb|ccc|ddd}eee, where the {} indicate the context start and limit, and the || indicate the start and limit.
-
Constructor Details
-
UtilityExtensions
public UtilityExtensions()
-
-
Method Details
-
appendToRule
public static void appendToRule(StringBuilder rule, String text, boolean isLiteral, boolean escapeUnprintable, StringBuilder quoteBuf) Append the given string to the rule. Calls the single-character version of appendToRule for each character. -
appendToRule
public static void appendToRule(StringBuilder rule, UnicodeMatcher matcher, boolean escapeUnprintable, StringBuilder quoteBuf) Given a matcher reference, which may be null, append its pattern as a literal to the given rule. -
formatInput
For debugging purposes; format the given text in the form aaa{bbb|ccc|ddd}eee, where the {} indicate the context start and limit, and the || indicate the start and limit. -
formatInput
public static StringBuilder formatInput(StringBuilder appendTo, ReplaceableString input, Transliterator.Position pos) For debugging purposes; format the given text in the form aaa{bbb|ccc|ddd}eee, where the {} indicate the context start and limit, and the || indicate the start and limit. -
formatInput
Convenience method. -
formatInput
public static StringBuilder formatInput(StringBuilder appendTo, Replaceable input, Transliterator.Position pos) Convenience method.
-