Facundo Batista
6f7e6fb7a2
Made _ParseTupleFinds only defined to unicodeobject.c
2007-11-16 19:16:15 +00:00
Facundo Batista
292a069b88
Fix for stupid error (I need to remember to do a full 'make clean + make'
...
cycle before the tests...). Sorry.
2007-11-16 18:41:24 +00:00
Facundo Batista
57d5669f4b
Now in find, rfind, index, and rindex, you can use None as defaults,
...
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.
2007-11-16 18:04:14 +00:00
Fredrik Lundh
93eff6fecd
changed find/rfind to return -1 for matches outside the source string
2006-05-30 17:11:48 +00:00
Fredrik Lundh
60d8b18831
needforspeed: stringlib refactoring: changed find_obj to find_slice,
...
to enable use from stringobject
2006-05-27 15:20:22 +00:00
Fredrik Lundh
c2d29c5a6d
needforspeed: replace improvements, changed to Py_LOCAL_INLINE
...
where appropriate
2006-05-27 14:58:20 +00:00
Fredrik Lundh
2d23d5bf2e
needforspeed: more stringlib refactoring
2006-05-27 10:05:10 +00:00
Fredrik Lundh
e6e43c867d
needforspeed: stringlib refactoring: use stringlib/find for string find
2006-05-26 19:48:07 +00:00
Fredrik Lundh
58b5e84d52
needforspeed: stringlib refactoring, continued. added count and
...
find helpers; updated unicodeobject to use stringlib_count
2006-05-26 19:24:53 +00:00