Package com.saxonica.config.pe
Class ICUNumberer_de
java.lang.Object
net.sf.saxon.expr.number.AbstractNumberer
com.saxonica.config.pe.ICUNumbererPE
com.saxonica.config.pe.ICUNumberer_de
- All Implemented Interfaces:
Numberer
A numberer for German using the ICU features, which supports variable ordinal suffixing, for example '-en', '-es'
-
Field Summary
Fields inherited from class net.sf.saxon.expr.number.AbstractNumberer
cyrillicLower, cyrillicUpper, greekLower, greekUpper, hebrew, hiraganaA, hiraganaI, katakanaA, katakanaI, latinLower, latinUpper, LOWER_CASE, lowerCaseAlphabet, TITLE_CASE, UPPER_CASE, upperCaseAlphabet, westernDigits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
config
(Locale locale, String privateUseExtension, Configuration config) Configure an ICU numberer.postProcessOrdinal
(String result, String ordinalParam) Replace trailing 'e' on German ordinals with the post-hyphen suffix, e.g.Methods inherited from class com.saxonica.config.pe.ICUNumbererPE
availableOrdinalNumberings, availableSpelloutNumberings, dayName, defaultedLocale, getICUVersion, getLocales, getNumberer, getPreferences, monthName, ordinalSuffix, postProcess, realLocale, toOrdinalWords, toWords, toWords
Methods inherited from class net.sf.saxon.expr.number.AbstractNumberer
alphaDefault, convertDigitSystem, format, format, getCalendarName, getCountry, getEraName, getLanguage, getOrdinalSuffixForDateTime, halfDayName, setCountry, setLanguage, toAlpha, toAlphaSequence, toJapanese, toRoman, zero
-
Constructor Details
-
ICUNumberer_de
public ICUNumberer_de()
-
-
Method Details
-
config
Description copied from class:ICUNumbererPE
Configure an ICU numberer. This includes possibly substituting a default locale if that requested isn't supported.- Overrides:
config
in classICUNumbererPE
- Parameters:
locale
- the locale to useprivateUseExtension
- the language code extension used to denote required numberingconfig
- the system Configuration
-
postProcessOrdinal
Replace trailing 'e' on German ordinals with the post-hyphen suffix, e.g. '-en'- Overrides:
postProcessOrdinal
in classICUNumbererPE
- Parameters:
result
- the raw result as delivered by ICUordinalParam
- the requested ordinal form, e.g. "-er" or "-es"- Returns:
- New ordinal as words, with appropriate suffix
-