Class ICULibrary

java.lang.Object
com.saxonica.config.ICULibrary

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

    • ICULibrary

      public ICULibrary()
  • Method Details

    • isICUCollatorAvailable

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

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

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

      public static String getLanguageTag(Locale locale)