Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #7622: Improve the split(), rsplit(), splitlines() and replace() | Antoine Pitrou | 2010-01-13 | 1 | -35/+23 |
| | | | | | methods of bytes, bytearray and unicode objects by using a common implementation based on stringlib's fast search. Patch by Florent Xicluna. | ||||
* | Issue #7462: Implement the stringlib fast search algorithm for the `rfind`, | Antoine Pitrou | 2010-01-02 | 1 | -18/+14 |
| | | | | `rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna. | ||||
* | #3967: Correct a crash in count() and find() methods of string-like objects. | Amaury Forgeot d'Arc | 2008-09-26 | 1 | -4/+3 |
| | | | | | | | | For example: "".count("xxxx", sys.maxint, 0) Reviewed by Benjamin Peterson. Will port to 2.5 and 3.0. | ||||
* | Silenced compiler warning | Christian Heimes | 2008-08-22 | 1 | -1/+1 |
| | | | | | Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used Reviewed by Benjamin Peterson | ||||
* | Made _ParseTupleFinds only defined to unicodeobject.c | Facundo Batista | 2007-11-16 | 1 | -0/+3 |
| | |||||
* | Fix for stupid error (I need to remember to do a full 'make clean + make' | Facundo Batista | 2007-11-16 | 1 | -1/+1 |
| | | | | cycle before the tests...). Sorry. | ||||
* | Now in find, rfind, index, and rindex, you can use None as defaults, | Facundo Batista | 2007-11-16 | 1 | -0/+47 |
| | | | | | | | | | | | | as usual with slicing (both with str and unicode strings). This fixes issue 1259. For str only the stringobject.c file was modified. But for unicode, I needed to repeat in the four functions a lot of code, so created a new function that does part of the job for them (and placed it in find.h, following a suggestion of Barry). Also added tests for this behaviour. | ||||
* | changed find/rfind to return -1 for matches outside the source string | Fredrik Lundh | 2006-05-30 | 1 | -10/+11 |
| | |||||
* | needforspeed: stringlib refactoring: changed find_obj to find_slice, | Fredrik Lundh | 2006-05-27 | 1 | -18/+39 |
| | | | | to enable use from stringobject | ||||
* | needforspeed: replace improvements, changed to Py_LOCAL_INLINE | Fredrik Lundh | 2006-05-27 | 1 | -5/+5 |
| | | | | where appropriate | ||||
* | needforspeed: more stringlib refactoring | Fredrik Lundh | 2006-05-27 | 1 | -0/+33 |
| | |||||
* | needforspeed: stringlib refactoring: use stringlib/find for string find | Fredrik Lundh | 2006-05-26 | 1 | -6/+15 |
| | |||||
* | needforspeed: stringlib refactoring, continued. added count and | Fredrik Lundh | 2006-05-26 | 1 | -0/+49 |
find helpers; updated unicodeobject to use stringlib_count |