mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Merged revisions 77241 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77241 | antoine.pitrou | 2010-01-02 22:12:58 +0100 (sam., 02 janv. 2010) | 4 lines Issue #7462: Implement the stringlib fast search algorithm for the `rfind`, `rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna. ........
This commit is contained in:
parent
2952148dd2
commit
da2ecaf334
10 changed files with 131 additions and 115 deletions
|
|
@ -15,10 +15,6 @@ STRINGLIB_EMPTY
|
|||
|
||||
a PyObject representing the empty string
|
||||
|
||||
int STRINGLIB_CMP(STRINGLIB_CHAR*, STRINGLIB_CHAR*, Py_ssize_t)
|
||||
|
||||
compares two strings. returns 0 if they match, and non-zero if not.
|
||||
|
||||
Py_ssize_t STRINGLIB_LEN(PyObject*)
|
||||
|
||||
returns the length of the given string object (which must be of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue