Class UtilityExtensions


  • public class UtilityExtensions
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UtilityExtensions

        public UtilityExtensions()
    • 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.StringBuffer formatInput​(java.lang.StringBuffer appendTo,
                                                         Replaceable input,
                                                         Transliterator.Position pos)
        Convenience method.