summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-26 19:24:53 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-05-26 19:24:53 (GMT)
commit58b5e84d52bc15ff1cae26ecff36e5a99d6715b6 (patch)
tree0884631f9ac8578ce1c94c6fa372494265524ba8 /Objects/stringobject.c
parenta26de2a80fce5070155b3facb126c176988f4513 (diff)
downloadcpython-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.c4
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