Package com.ibm.icu.impl
Class UtilityExtensions
- java.lang.Object
-
- com.ibm.icu.impl.UtilityExtensions
-
public class UtilityExtensions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UtilityExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendToRule(java.lang.StringBuffer rule, UnicodeMatcher matcher, boolean escapeUnprintable, java.lang.StringBuffer quoteBuf)
Given a matcher reference, which may be null, append its pattern as a literal to the given rule.static void
appendToRule(java.lang.StringBuffer rule, java.lang.String text, boolean isLiteral, boolean escapeUnprintable, java.lang.StringBuffer quoteBuf)
Append the given string to the rule.static java.lang.String
formatInput(Replaceable input, Transliterator.Position pos)
Convenience method.static java.lang.String
formatInput(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 java.lang.StringBuffer
formatInput(java.lang.StringBuffer appendTo, Replaceable input, Transliterator.Position pos)
Convenience method.static java.lang.StringBuffer
formatInput(java.lang.StringBuffer 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.
-
-
-
Method Detail
-
appendToRule
public static void appendToRule(java.lang.StringBuffer rule, java.lang.String text, boolean isLiteral, boolean escapeUnprintable, java.lang.StringBuffer quoteBuf)
Append the given string to the rule. Calls the single-character version of appendToRule for each character.
-
appendToRule
public static void appendToRule(java.lang.StringBuffer rule, UnicodeMatcher matcher, boolean escapeUnprintable, java.lang.StringBuffer quoteBuf)
Given a matcher reference, which may be null, append its pattern as a literal to the given rule.
-
formatInput
public static java.lang.String formatInput(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
public static java.lang.StringBuffer formatInput(java.lang.StringBuffer 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
public static java.lang.String formatInput(Replaceable input, Transliterator.Position pos)
Convenience method.
-
formatInput
public static java.lang.StringBuffer formatInput(java.lang.StringBuffer appendTo, Replaceable input, Transliterator.Position pos)
Convenience method.
-
-