diff Objects/stringobject.c @ 38400:33c328896f52 legacy-trunk

needforspeed: stringlib refactoring, continued. added count and find helpers; updated unicodeobject to use stringlib_count
author Fredrik Lundh <fredrik@pythonware.com>
date Fri, 26 May 2006 19:24:53 +0000
parents d153d2f66884
children 52f2c9f74f5a
line wrap: on
line diff
--- a/Objects/stringobject.c	Fri May 26 19:23:21 2006 +0000
+++ b/Objects/stringobject.c	Fri May 26 19:24:53 2006 +0000
@@ -1548,7 +1548,7 @@
 	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 @@
 	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