org.python.core
public class PyString extends PyBaseString implements ClassDictInit
| Field Summary | |
|---|---|
| static String | exposed_name |
| Constructor Summary | |
|---|---|
| PyString() | |
| PyString(PyType subType, String string) | |
| PyString(String string) | |
| PyString(char c) | |
| Method Summary | |
|---|---|
| String | asName(int index) |
| String | asString(int index) |
| double | atof() |
| int | atoi() |
| int | atoi(int base) |
| PyLong | atol() |
| PyLong | atol(int base) |
| String | capitalize() |
| String | center(int width) |
| static void | classDictInit(PyObject dict) Internal use only. |
| int | count(String sub) |
| int | count(String sub, int start) |
| int | count(String sub, int start, int end) |
| PyString | createInstance(String str) |
| String | decode() |
| String | decode(String encoding) |
| String | decode(String encoding, String errors) |
| static String | decode_UnicodeEscape(String str, int start, int end, String errors, boolean unicode) |
| String | encode() |
| String | encode(String encoding) |
| String | encode(String encoding, String errors) |
| static String | encode_UnicodeEscape(String str, boolean use_quotes) |
| static String | encode_UnicodeEscape(String str, boolean use_quotes, boolean unicodeDesignatorPresent) |
| boolean | endswith(String suffix) |
| boolean | endswith(String suffix, int start) |
| boolean | endswith(String suffix, int start, int end) |
| boolean | equals(Object other) |
| String | expandtabs() |
| String | expandtabs(int tabsize) |
| int | find(String sub) |
| int | find(String sub, int start) |
| int | find(String sub, int start, int end) |
| static String | from_bytes(byte[] buf) |
| static String | from_bytes(byte[] buf, int off, int len) |
| int | hashCode() |
| int | index(String sub) |
| int | index(String sub, int start) |
| int | index(String sub, int start, int end) |
| String | internedString() |
| boolean | isalnum() |
| boolean | isalpha() |
| boolean | isdecimal() |
| boolean | isdigit() |
| boolean | islower() |
| boolean | isnumeric() |
| boolean | isspace() |
| boolean | istitle() |
| boolean | isunicode() |
| boolean | isupper() |
| String | join(PyObject seq) |
| String | ljust(int width) |
| String | lower() |
| String | lstrip() |
| String | lstrip(String sep) |
| int | rfind(String sub) |
| int | rfind(String sub, int start) |
| int | rfind(String sub, int start, int end) |
| int | rindex(String sub) |
| int | rindex(String sub, int start) |
| int | rindex(String sub, int start, int end) |
| String | rjust(int width) |
| String | rstrip() |
| String | rstrip(String sep) |
| String | safeRepr() |
| PyList | split() |
| PyList | split(String sep) |
| PyList | split(String sep, int maxsplit) |
| PyList | splitlines() |
| PyList | splitlines(boolean keepends) |
| boolean | startswith(String prefix) |
| boolean | startswith(String prefix, int offset) |
| boolean | startswith(String prefix, int start, int end) |
| String | strip() |
| String | strip(String sep) |
| PyObject | str___mod__(PyObject other) |
| String | swapcase() |
| String | title() |
| byte[] | toBytes() |
| String | toString() |
| static byte[] | to_bytes(String s) |
| String | translate(String table) |
| String | translate(String table, String deletechars) |
| String | translate(PyObject table) |
| static void | typeSetup(PyObject dict, PyType.Newstyle marker) |
| String | upper() |
| String | zfill(int width) |
| PyObject | __add__(PyObject generic_other) |
| int | __cmp__(PyObject other) |
| PyComplex | __complex__() |
| boolean | __contains__(PyObject o) |
| PyObject | __eq__(PyObject other) |
| PyFloat | __float__() |
| PyTuple | __getnewargs__() |
| PyObject | __ge__(PyObject other) |
| PyObject | __gt__(PyObject other) |
| PyObject | __int__() |
| PyObject | __invert__() |
| int | __len__() |
| PyObject | __le__(PyObject other) |
| PyLong | __long__() |
| PyObject | __lt__(PyObject other) |
| PyObject | __mod__(PyObject other) |
| PyObject | __neg__() |
| PyObject | __ne__(PyObject other) |
| PyObject | __pos__() |
| PyObject | __reduce__()
Used for pickling.
|
| PyString | __repr__() |
| PyString | __str__() |
| Object | __tojava__(Class c) |
| PyUnicode | __unicode__() |
Returns: A String with chars corresponding to the bytes in buf
Returns: A String of len buff with chars corresponding to buf from off to off + len
Returns: a byte array with one byte for each char in this object's underlying String. Each byte contains the low-order bits of its corresponding char.
Returns: a byte array with one byte for each char in s. Each byte contains the low-order bits of its corresponding char.
Returns: a tuple of (class, tuple)