diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 19:24:53 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 19:24:53 (GMT) |
commit | 58b5e84d52bc15ff1cae26ecff36e5a99d6715b6 (patch) | |
tree | 0884631f9ac8578ce1c94c6fa372494265524ba8 /Objects/stringobject.c | |
parent | a26de2a80fce5070155b3facb126c176988f4513 (diff) | |
download | cpython-58b5e84d52bc15ff1cae26ecff36e5a99d6715b6.zip cpython-58b5e84d52bc15ff1cae26ecff36e5a99d6715b6.tar.gz cpython-58b5e84d52bc15ff1cae26ecff36e5a99d6715b6.tar.bz2 |
needforspeed: stringlib refactoring, continued. added count and
find helpers; updated unicodeobject to use stringlib_count
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 5d57f15..75325ab 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1548,7 +1548,7 @@ string_partition(PyStringObject *self, PyObject *sep_obj) else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) return NULL; - return partition( + return stringlib_partition( (PyObject*) self, PyString_AS_STRING(self), PyString_GET_SIZE(self), sep_obj, sep, sep_len @@ -1579,7 +1579,7 @@ string_rpartition(PyStringObject *self, PyObject *sep_obj) else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) return NULL; - return rpartition( + return stringlib_rpartition( (PyObject*) self, PyString_AS_STRING(self), PyString_GET_SIZE(self), sep_obj, sep, sep_len |