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