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 |
---|---|
String |
camelBump(String string) |
String |
dayName(int gun,
int min,
int max)
Get a day name or abbreviation
|
String |
formatWord(String word,
int formatIdx) |
static void |
main(String[] args) |
String |
monthName(int ay,
int min,
int max)
Get a month name or abbreviation
|
String |
numberer(long number,
int format) |
String |
toOrdinalWords(String string,
long l,
int format)
Show an ordinal number as English words in a requested case (for example, Twentyfirst)
|
String |
toWords(long l)
Show the number as words in title case.
|
String |
toWords(long l,
int format)
Format a number as English words with specified case options
|
alphaDefault, defaultedLocale, format, format, getCalendarName, getCountry, getEraName, getOrdinalSuffixForDateTime, halfDayName, ordinalSuffix, setCountry, toAlpha, toAlphaSequence, toJapanese, toRoman
public String numberer(long number, int format)
public String toWords(long l)
AbstractNumberer
toWords
in class AbstractNumberer
l
- the number to be formattedpublic 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 String toOrdinalWords(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 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 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 static void main(String[] args)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.