Package com.saxonica.config
Class ICULibrary
java.lang.Object
com.saxonica.config.ICULibrary
Class to report whether ICU features are loaded.
This will be used by the PE Platform to check ICU presence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLanguageTag(Locale locale) static booleanIs an ICU numberer loaded?static booleanIs an ICU collator loaded?static StringCollatormakeICUCollator(String uri, Configuration config) If available, make a collation using the ICU-J Library
-
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
-