summaryrefslogtreecommitdiff
path: root/Objects/stringlib/count.h
AgeCommit message (Collapse)AuthorLines
2010-01-13Issue #7622: Improve the split(), rsplit(), splitlines() and replace()Antoine Pitrou-11/+5
methods of bytes, bytearray and unicode objects by using a common implementation based on stringlib's fast search. Patch by Florent Xicluna.
2008-09-26#3967: Correct a crash in count() and find() methods of string-like objects.Amaury Forgeot d'Arc-4/+3
For example: "".count("xxxx", sys.maxint, 0) Reviewed by Benjamin Peterson. Will port to 2.5 and 3.0.
2006-05-30changed count to return 0 for slices outside the source stringFredrik Lundh-1/+1
2006-05-29fixed "abc".count("", 100) == -96 error (hopefully, nobody's relying onFredrik Lundh-1/+4
the current behaviour ;-)
2006-05-27needforspeed: replace improvements, changed to Py_LOCAL_INLINEFredrik Lundh-1/+1
where appropriate
2006-05-26needforspeed: stringlib refactoring, continued. added count andFredrik Lundh-0/+34
find helpers; updated unicodeobject to use stringlib_count