Package org.python.modules._locale
Class CEmulationLocale
- java.lang.Object
-
- org.python.modules._locale.CEmulationLocale
-
- All Implemented Interfaces:
DateSymbolLocale,PyLocale
public class CEmulationLocale extends java.lang.Object implements PyLocale
Emulates the Python (ie POSIX) 'C' locale. The C emulation locale uses only ANSI characters in non-unicode strings, in keeping with it being the locale of last resort and maximum compatibility. Used by the _locale module. Callers would not usually interact with this class directly unless working with _locale internals.- Since:
- Jython 2.7.2
-
-
Constructor Summary
Constructors Constructor Description CEmulationLocale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getAmPmStrings()PyStringgetLocaleString()java.lang.String[]getMonths()java.lang.String[]getShortMonths()java.lang.String[]getShortWeekdays()PyStringgetUnderlyingLocale()java.lang.String[]getWeekdays()PyDictionarylocaleconv()intstrcoll(PyString str1, PyString str2)PyStringstrxfrm(PyString str1)
-
-
-
Method Detail
-
localeconv
public PyDictionary localeconv()
- Specified by:
localeconvin interfacePyLocale
-
getLocaleString
public PyString getLocaleString()
- Specified by:
getLocaleStringin interfacePyLocale
-
getUnderlyingLocale
public PyString getUnderlyingLocale()
- Specified by:
getUnderlyingLocalein interfacePyLocale
-
getShortWeekdays
public java.lang.String[] getShortWeekdays()
- Specified by:
getShortWeekdaysin interfaceDateSymbolLocale
-
getWeekdays
public java.lang.String[] getWeekdays()
- Specified by:
getWeekdaysin interfaceDateSymbolLocale
-
getShortMonths
public java.lang.String[] getShortMonths()
- Specified by:
getShortMonthsin interfaceDateSymbolLocale
-
getMonths
public java.lang.String[] getMonths()
- Specified by:
getMonthsin interfaceDateSymbolLocale
-
getAmPmStrings
public java.lang.String[] getAmPmStrings()
- Specified by:
getAmPmStringsin interfaceDateSymbolLocale
-
-