Class ICULibrary

  • public class ICULibrary
    extends java.lang.Object
    Class to report whether ICU features are loaded. This will be used by the PE Platform to check ICU presence
    • Constructor Detail

      • ICULibrary

        public ICULibrary()
    • Method Detail

      • isICUCollatorAvailable

        public static boolean isICUCollatorAvailable()
        Is an ICU collator loaded?
        true if so
      • hasNumberer

        public static boolean hasNumberer()
        Is an ICU numberer loaded?
        true if so
      • makeICUCollator

        public static StringCollator makeICUCollator​(java.lang.String uri,
                                                     Configuration config)
                                              throws XPathException
        If available, make a collation using the ICU-J Library
        uri - the collation URI (which will always be a UCA collation URI as defined in XSLT 3.0)
        config - the Saxon configuration
        the collation, or null if not available
        XPathException - if the URI is malformed in some way
      • getLanguageTag

        public static java.lang.String getLanguageTag​(java.util.Locale locale)