Top Description Fields Constructors Methods
org.python.modules._locale

public Class CEmulationLocale

extends Object
implements PyLocale
Class Inheritance
All Implemented Interfaces
org.python.modules._locale.PyLocale, org.python.modules._locale.DateSymbolLocale
Imports
org.python.core.Py, .PyDictionary, .PyList, .PyString

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

Field Summary

Modifier and TypeField and Description
private static final PyDictionary
private static final String[]
private static final String[]
private static final String[]
private static final String[]
private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
public PyString
public String[]
public String[]
public String[]
public PyString
public String[]
public PyDictionary
private static void
private static void
public int
public PyString
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMULATION_CONVback to summary
private static final PyDictionary EMULATION_CONV
EN_AM_PMback to summary
private static final String[] EN_AM_PM
EN_DAYSback to summary
private static final String[] EN_DAYS
EN_MONTHSback to summary
private static final String[] EN_MONTHS
EN_SHORT_DAYSback to summary
private static final String[] EN_SHORT_DAYS
EN_SHORT_MONTHSback to summary
private static final String[] EN_SHORT_MONTHS

Constructor Detail

CEmulationLocaleback to summary
public CEmulationLocale()

Method Detail

getAmPmStringsback to summary
public String[] getAmPmStrings()

Implements org.python.modules._locale.DateSymbolLocale.getAmPmStrings.

Annotations
@Override
getLocaleStringback to summary
public PyString getLocaleString()

Implements org.python.modules._locale.PyLocale.getLocaleString.

Annotations
@Override
getMonthsback to summary
public String[] getMonths()

Implements org.python.modules._locale.DateSymbolLocale.getMonths.

Annotations
@Override
getShortMonthsback to summary
public String[] getShortMonths()

Implements org.python.modules._locale.DateSymbolLocale.getShortMonths.

Annotations
@Override
getShortWeekdaysback to summary
public String[] getShortWeekdays()

Implements org.python.modules._locale.DateSymbolLocale.getShortWeekdays.

Annotations
@Override
getUnderlyingLocaleback to summary
public PyString getUnderlyingLocale()

Implements org.python.modules._locale.PyLocale.getUnderlyingLocale.

Annotations
@Override
getWeekdaysback to summary
public String[] getWeekdays()

Implements org.python.modules._locale.DateSymbolLocale.getWeekdays.

Annotations
@Override
localeconvback to summary
public PyDictionary localeconv()

Implements org.python.modules._locale.PyLocale.localeconv.

Annotations
@Override
putCharMaxback to summary
private static void putCharMax(PyDictionary dict, String key)
putEmptyback to summary
private static void putEmpty(PyDictionary dict, String key)
strcollback to summary
public int strcoll(PyString str1, PyString str2)

Implements org.python.modules._locale.PyLocale.strcoll.

Annotations
@Override
strxfrmback to summary
public PyString strxfrm(PyString str1)

Implements org.python.modules._locale.PyLocale.strxfrm.

Annotations
@Override