Top Constructors Methods
com.ibm.icu.impl

public Class UtilityExtensions

extends Object
Class Inheritance
Imports
com.ibm.icu.text.Replaceable, .ReplaceableString, .Transliterator, .UnicodeMatcher

Author
Ram

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
appendToRule(StringBuffer rule, String text, boolean isLiteral, boolean escapeUnprintable, StringBuffer quoteBuf)

Append the given string to the rule.

public static void
appendToRule(StringBuffer rule, UnicodeMatcher matcher, boolean escapeUnprintable, StringBuffer quoteBuf)

Given a matcher reference, which may be null, append its pattern as a literal to the given rule.

public static 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.

public static StringBuffer
formatInput(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.

public static String
formatInput(Replaceable input, Transliterator.Position pos)

Convenience method.

public static StringBuffer
formatInput(StringBuffer appendTo, Replaceable input, Transliterator.Position pos)

Convenience method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UtilityExtensionsback to summary
public UtilityExtensions()

Method Detail

appendToRuleback to summary
public static void appendToRule(StringBuffer rule, String text, boolean isLiteral, boolean escapeUnprintable, StringBuffer quoteBuf)

Append the given string to the rule. Calls the single-character version of appendToRule for each character.

appendToRuleback to summary
public static void appendToRule(StringBuffer rule, UnicodeMatcher matcher, boolean escapeUnprintable, StringBuffer quoteBuf)

Given a matcher reference, which may be null, append its pattern as a literal to the given rule.

formatInputback to summary
public static 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.

formatInputback to summary
public static StringBuffer formatInput(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.

formatInputback to summary
public static String formatInput(Replaceable input, Transliterator.Position pos)

Convenience method.

formatInputback to summary
public static StringBuffer formatInput(StringBuffer appendTo, Replaceable input, Transliterator.Position pos)

Convenience method.