Package org.python.modules._locale
Class JyLocale
- java.lang.Object
-
- org.python.modules._locale.DateSymbolJyLocale
-
- org.python.modules._locale.JyLocale
-
- All Implemented Interfaces:
DateSymbolLocale
,PyLocale
public class JyLocale extends DateSymbolJyLocale implements PyLocale
Sources locale information from standard Java API functions, such as that inLocale
andDecimalFormat
. 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 JyLocale(java.util.Locale locale, java.lang.String encoding)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEncoding()
PyString
getLocaleString()
PyString
getUnderlyingLocale()
static boolean
isExtendedWhitespace(char c)
Includes non-breaking space, but not extended codepointsPyDictionary
localeconv()
int
strcoll(PyString str1, PyString str2)
PyString
strxfrm(PyString str)
-
Methods inherited from class org.python.modules._locale.DateSymbolJyLocale
getAmPmStrings, getMonths, getShortMonths, getShortWeekdays, getWeekdays
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.python.modules._locale.DateSymbolLocale
getAmPmStrings, getMonths, getShortMonths, getShortWeekdays, getWeekdays
-
-
-
-
Method Detail
-
localeconv
public PyDictionary localeconv()
- Specified by:
localeconv
in interfacePyLocale
-
getLocaleString
public PyString getLocaleString()
- Specified by:
getLocaleString
in interfacePyLocale
-
getUnderlyingLocale
public PyString getUnderlyingLocale()
- Specified by:
getUnderlyingLocale
in interfacePyLocale
-
getEncoding
public java.lang.String getEncoding()
-
isExtendedWhitespace
public static boolean isExtendedWhitespace(char c)
Includes non-breaking space, but not extended codepoints
-
-