public class ICULibrary
extends java.lang.Object
Constructor and Description |
---|
ICULibrary() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLanguageTag(java.util.Locale locale) |
static boolean |
hasNumberer()
Is an ICU numberer loaded?
|
static boolean |
isICUCollatorAvailable()
Is an ICU collator loaded?
|
static StringCollator |
makeICUCollator(java.lang.String uri,
Configuration config)
If available, make a collation using the ICU-J Library
|
public static boolean isICUCollatorAvailable()
public static boolean hasNumberer()
public static StringCollator makeICUCollator(java.lang.String uri, Configuration config) throws XPathException
uri
- the collation URI (which will always be a UCA collation URI as defined in XSLT 3.0)config
- the Saxon configurationXPathException
- if the URI is malformed in some waypublic static java.lang.String getLanguageTag(java.util.Locale locale)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.