Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Delta Between Two Patch Sets: Objects/stringlib/find.h

Issue 8706: accept keyword arguments on all base type methods and builtins
Left Patch Set: Created 8 years, 3 months ago
Right Patch Set: Created 8 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Objects/bytesobject.c ('k') | Objects/unicodeobject.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* stringlib: find/index implementation */ 1 /* stringlib: find/index implementation */
2 2
3 #ifndef STRINGLIB_FASTSEARCH_H 3 #ifndef STRINGLIB_FASTSEARCH_H
4 #error must include "stringlib/fastsearch.h" before including this module 4 #error must include "stringlib/fastsearch.h" before including this module
5 #endif 5 #endif
6 6
7 Py_LOCAL_INLINE(Py_ssize_t) 7 Py_LOCAL_INLINE(Py_ssize_t)
8 STRINGLIB(find)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, 8 STRINGLIB(find)(const STRINGLIB_CHAR* str, Py_ssize_t str_len,
9 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, 9 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len,
10 Py_ssize_t offset) 10 Py_ssize_t offset)
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 PyErr_SetString(PyExc_ValueError, "byte must be in range(0, 256)"); 213 PyErr_SetString(PyExc_ValueError, "byte must be in range(0, 256)");
214 return 0; 214 return 0;
215 } 215 }
216 216
217 *subobj = NULL; 217 *subobj = NULL;
218 *byte = (char)ival; 218 *byte = (char)ival;
219 return 1; 219 return 1;
220 } 220 }
221 221
222 #endif /* STRINGLIB_IS_UNICODE */ 222 #endif /* STRINGLIB_IS_UNICODE */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+