public class Numberer_tr extends AbstractNumberer
cyrillicLower, cyrillicUpper, greekLower, greekUpper, hebrew, hiraganaA, hiraganaI, katakanaA, katakanaI, latinLower, latinUpper, LOWER_CASE, TITLE_CASE, UPPER_CASE, westernDigits
Constructor and Description |
---|
Numberer_tr() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
camelBump(java.lang.String string) |
java.lang.String |
dayName(int gun,
int min,
int max)
Get a day name or abbreviation
|
java.lang.String |
formatWord(java.lang.String word,
int formatIdx) |
static void |
main(java.lang.String[] args) |
java.lang.String |
monthName(int ay,
int min,
int max)
Get a month name or abbreviation
|
java.lang.String |
numberer(long number,
int format) |
java.lang.String |
toOrdinalWords(java.lang.String string,
long l,
int format)
Show an ordinal number as English words in a requested case (for example, Twentyfirst)
|
java.lang.String |
toWords(long l)
Show the number as words in title case.
|
java.lang.String |
toWords(long l,
int format)
Format a number as English words with specified case options
|
alphaDefault, convertDigitSystem, defaultedLocale, format, format, getCalendarName, getCountry, getEraName, getLanguage, getOrdinalSuffixForDateTime, halfDayName, ordinalSuffix, setCountry, setLanguage, toAlpha, toAlphaSequence, toJapanese, toRoman
public java.lang.String formatWord(java.lang.String word, int formatIdx)
public java.lang.String numberer(long number, int format)
public java.lang.String toWords(long l)
AbstractNumberer
toWords
in class AbstractNumberer
l
- the number to be formattedpublic java.lang.String toWords(long l, int format)
AbstractNumberer
toWords
in class AbstractNumberer
l
- the number to be formattedformat
- the required case for example AbstractNumberer.UPPER_CASE
,
AbstractNumberer.LOWER_CASE
, AbstractNumberer.TITLE_CASE
public java.lang.String toOrdinalWords(java.lang.String string, long l, int format)
AbstractNumberer
toOrdinalWords
in class AbstractNumberer
string
- the value of the "ordinal" attribute as supplied by the userl
- the number to be formattedformat
- the required case for example AbstractNumberer.UPPER_CASE
,
AbstractNumberer.LOWER_CASE
, AbstractNumberer.TITLE_CASE
public java.lang.String monthName(int ay, int min, int max)
AbstractNumberer
monthName
in interface Numberer
monthName
in class AbstractNumberer
ay
- The month number (1=January, 12=December)min
- The minimum number of charactersmax
- The maximum number of characterspublic java.lang.String dayName(int gun, int min, int max)
AbstractNumberer
dayName
in interface Numberer
dayName
in class AbstractNumberer
gun
- The day of the week (1=Monday, 7=Sunday)min
- The minimum number of charactersmax
- The maximum number of characterspublic java.lang.String camelBump(java.lang.String string)
public static void main(java.lang.String[] args)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.