|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.PyObject
org.python.core.PySequence
org.python.core.PyBaseString
org.python.core.PyString
org.python.core.PyUnicode
public class PyUnicode
a builtin python unicode string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.python.core.PyObject |
|---|
PyObject.ConversionException |
| Field Summary | |
|---|---|
static PyType |
TYPE
|
| Fields inherited from class org.python.core.PySequence |
|---|
gListAllocatedStatus |
| Constructor Summary | |
|---|---|
PyUnicode()
|
|
PyUnicode(char c)
|
|
PyUnicode(int codepoint)
|
|
PyUnicode(int[] codepoints)
|
|
PyUnicode(PyString pystring)
|
|
PyUnicode(PyType subtype,
PyString pystring)
|
|
PyUnicode(PyType subtype,
java.lang.String string)
|
|
PyUnicode(java.lang.String string)
|
|
PyUnicode(java.lang.String string,
boolean isBasic)
|
|
| Method Summary | |
|---|---|
PyObject |
__add__(PyObject other)
Equivalent to the standard Python __add__ method |
PyComplex |
__complex__()
Equivalent to the standard Python __complex__ method. |
int |
__len__()
Equivalent to the standard Python __len__ method. |
PyObject |
__mod__(PyObject other)
Equivalent to the standard Python __mod__ method |
PyString |
__repr__()
Equivalent to the standard Python __repr__ method. |
PyString |
__str__()
Equivalent to the standard Python __str__ method. |
double |
atof()
|
int |
atoi(int base)
|
PyLong |
atol(int base)
|
PyString |
createInstance(java.lang.String str)
|
static PyUnicode |
fromInterned(java.lang.String interned)
Creates a PyUnicode from an already interned String. |
int |
getCodePointCount()
|
boolean |
isBasicPlane()
|
java.util.Iterator<java.lang.Integer> |
iterator()
|
PyString |
join(PyObject seq)
|
java.util.Iterator |
newSubsequenceIterator()
|
java.util.Iterator |
newSubsequenceIterator(int start,
int stop,
int step)
|
PyTuple |
partition(PyObject sep)
|
PyTuple |
rpartition(PyObject sep)
|
java.lang.String |
substring(int start,
int end)
|
int[] |
toCodePoints()
|
| Methods inherited from class org.python.core.PyString |
|---|
__cmp__, __contains__, __eq__, __float__, __ge__, __getnewargs__, __gt__, __int__, __invert__, __le__, __long__, __lt__, __mul__, __ne__, __neg__, __pos__, __rmul__, __tojava__, __unicode__, asInt, asName, asString, asString, atoi, atol, capitalize, center, count, count, count, decode_UnicodeEscape, decode, decode, decode, encode_UnicodeEscape, encode, encode, encode, endswith, endswith, endswith, expandtabs, expandtabs, find, find, find, hashCode, index, index, index, internedString, isalnum, isalpha, isdecimal, isdigit, islower, isnumeric, isspace, istitle, isunicode, isupper, ljust, ljust, lower, lstrip, lstrip, rfind, rfind, rfind, rindex, rindex, rindex, rjust, rsplit, rsplit, rsplit, rstrip, split, split, split, splitlines, splitlines, startswith, startswith, startswith, str___mod__, strip, strip, swapcase, title, toBytes, toString, translate, translate, translate, upper, zfill |
| Methods inherited from class org.python.core.PySequence |
|---|
__delitem__, __delslice__, __finditem__, __finditem__, __getitem__, __getslice__, __iter__, __nonzero__, __setitem__, __setitem__, __setslice__, isMappingType, isNumberType |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PyType TYPE
| Constructor Detail |
|---|
public PyUnicode()
public PyUnicode(java.lang.String string)
public PyUnicode(java.lang.String string,
boolean isBasic)
public PyUnicode(PyType subtype,
java.lang.String string)
public PyUnicode(PyString pystring)
public PyUnicode(PyType subtype,
PyString pystring)
public PyUnicode(char c)
public PyUnicode(int codepoint)
public PyUnicode(int[] codepoints)
| Method Detail |
|---|
public int[] toCodePoints()
toCodePoints in class PyString
public java.lang.String substring(int start,
int end)
substring in class PyStringpublic static PyUnicode fromInterned(java.lang.String interned)
public boolean isBasicPlane()
public int getCodePointCount()
public PyString createInstance(java.lang.String str)
createInstance in class PyStringpublic PyObject __mod__(PyObject other)
PyObject
__mod__ in class PyStringother - the object to perform this binary operation with
(the right-hand operand).
public PyString __str__()
PyObjectPyObject is to
override the standard Java toString method.
__str__ in class PyStringpublic int __len__()
PyObject
__len__ in class PyStringpublic PyString __repr__()
PyObjectPyObject is to
override the standard Java toString method.
__repr__ in class PyStringpublic java.util.Iterator newSubsequenceIterator()
public java.util.Iterator newSubsequenceIterator(int start,
int stop,
int step)
public PyObject __add__(PyObject other)
PyObject
__add__ in class PyStringother - the object to perform this binary operation with
(the right-hand operand).
public PyTuple partition(PyObject sep)
partition in class PyStringpublic PyTuple rpartition(PyObject sep)
rpartition in class PyStringpublic PyString join(PyObject seq)
join in class PyStringpublic java.util.Iterator<java.lang.Integer> iterator()
iterator in interface java.lang.Iterablepublic PyComplex __complex__()
PyObject
__complex__ in class PyStringpublic int atoi(int base)
atoi in class PyStringpublic PyLong atol(int base)
atol in class PyStringpublic double atof()
atof in class PyString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||