|
|||||||||
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
|
Constructor Summary | |
---|---|
PyUnicode()
|
|
PyUnicode(char c)
|
|
PyUnicode(Collection<Integer> ucs4)
|
|
PyUnicode(int codepoint)
|
|
PyUnicode(int[] codepoints)
|
|
PyUnicode(Iterator<Integer> iter)
|
|
PyUnicode(PyString pystring)
|
|
PyUnicode(PyType subtype,
PyString pystring)
|
|
PyUnicode(PyType subtype,
String string)
|
|
PyUnicode(String string)
|
|
PyUnicode(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. |
PyUnicode |
__unicode__()
|
double |
atof()
|
int |
atoi(int base)
|
PyLong |
atol(int base)
|
PyString |
createInstance(String str)
|
static PyUnicode |
fromInterned(String interned)
Creates a PyUnicode from an already interned String. |
int |
getCodePointCount()
|
boolean |
isBasicPlane()
|
Iterator<Integer> |
iterator()
|
PyString |
join(PyObject seq)
|
Iterator<Integer> |
newSubsequenceIterator()
|
Iterator<Integer> |
newSubsequenceIterator(int start,
int stop,
int step)
|
PyTuple |
partition(PyObject sep)
|
PyTuple |
rpartition(PyObject sep)
|
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__, asDouble, asInt, asLong, 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, getString, 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, isSequenceType |
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(String string)
public PyUnicode(String string, boolean isBasic)
public PyUnicode(PyType subtype, String string)
public PyUnicode(PyString pystring)
public PyUnicode(PyType subtype, PyString pystring)
public PyUnicode(char c)
public PyUnicode(int codepoint)
public PyUnicode(int[] codepoints)
public PyUnicode(Iterator<Integer> iter)
public PyUnicode(Collection<Integer> ucs4)
Method Detail |
---|
public int[] toCodePoints()
toCodePoints
in class PyString
public String substring(int start, int end)
substring
in class PyString
public static PyUnicode fromInterned(String interned)
public boolean isBasicPlane()
public int getCodePointCount()
public PyString createInstance(String str)
createInstance
in class PyString
public PyObject __mod__(PyObject other)
PyObject
__mod__
in class PyString
other
- the object to perform this binary operation with
(the right-hand operand).
public PyUnicode __unicode__()
__unicode__
in class PyString
public PyString __str__()
PyObject
PyObject
is to
override the standard Java toString
method.
__str__
in class PyString
public int __len__()
PyObject
__len__
in class PyString
public PyString __repr__()
PyObject
PyObject
is to
override the standard Java toString
method.
__repr__
in class PyString
public Iterator<Integer> newSubsequenceIterator()
public Iterator<Integer> newSubsequenceIterator(int start, int stop, int step)
public PyObject __add__(PyObject other)
PyObject
__add__
in class PyString
other
- the object to perform this binary operation with
(the right-hand operand).
public PyTuple partition(PyObject sep)
partition
in class PyString
public PyTuple rpartition(PyObject sep)
rpartition
in class PyString
public PyString join(PyObject seq)
join
in class PyString
public Iterator<Integer> iterator()
iterator
in interface Iterable
public PyComplex __complex__()
PyObject
__complex__
in class PyString
public int atoi(int base)
atoi
in class PyString
public PyLong atol(int base)
atol
in class PyString
public double atof()
atof
in class PyString
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |