@@ -11254,6 +11254,7 @@ unicode_expandtabs_impl(PyObject *self, int tabsize)
11254
11254
}
11255
11255
11256
11256
/*[clinic input]
11257
+ @text_signature "($self, sub[, start[, end]], /)"
11257
11258
str.find as unicode_find = str.count
11258
11259
11259
11260
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
@@ -11265,7 +11266,7 @@ Return -1 on failure.
11265
11266
static Py_ssize_t
11266
11267
unicode_find_impl (PyObject * str , PyObject * substr , Py_ssize_t start ,
11267
11268
Py_ssize_t end )
11268
- /*[clinic end generated code: output=51dbe6255712e278 input=4a89d2d68ef57256 ]*/
11269
+ /*[clinic end generated code: output=51dbe6255712e278 input=94138bf5531ee2c2 ]*/
11269
11270
{
11270
11271
Py_ssize_t result = any_find_slice (str , substr , start , end , 1 );
11271
11272
if (result < 0 ) {
@@ -11315,6 +11316,7 @@ unicode_hash(PyObject *self)
11315
11316
}
11316
11317
11317
11318
/*[clinic input]
11319
+ @text_signature "($self, sub[, start[, end]], /)"
11318
11320
str.index as unicode_index = str.count
11319
11321
11320
11322
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
@@ -11326,7 +11328,7 @@ Raises ValueError when the substring is not found.
11326
11328
static Py_ssize_t
11327
11329
unicode_index_impl (PyObject * str , PyObject * substr , Py_ssize_t start ,
11328
11330
Py_ssize_t end )
11329
- /*[clinic end generated code: output=77558288837cdf40 input=d986aeac0be14a1c ]*/
11331
+ /*[clinic end generated code: output=77558288837cdf40 input=5d36d2214563e75f ]*/
11330
11332
{
11331
11333
Py_ssize_t result = any_find_slice (str , substr , start , end , 1 );
11332
11334
if (result == -1 ) {
@@ -12416,6 +12418,7 @@ unicode_repr(PyObject *unicode)
12416
12418
}
12417
12419
12418
12420
/*[clinic input]
12421
+ @text_signature "($self, sub[, start[, end]], /)"
12419
12422
str.rfind as unicode_rfind = str.count
12420
12423
12421
12424
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
@@ -12427,7 +12430,7 @@ Return -1 on failure.
12427
12430
static Py_ssize_t
12428
12431
unicode_rfind_impl (PyObject * str , PyObject * substr , Py_ssize_t start ,
12429
12432
Py_ssize_t end )
12430
- /*[clinic end generated code: output=880b29f01dd014c8 input=898361fb71f59294 ]*/
12433
+ /*[clinic end generated code: output=880b29f01dd014c8 input=6be966f58a917351 ]*/
12431
12434
{
12432
12435
Py_ssize_t result = any_find_slice (str , substr , start , end , -1 );
12433
12436
if (result < 0 ) {
@@ -12437,6 +12440,7 @@ unicode_rfind_impl(PyObject *str, PyObject *substr, Py_ssize_t start,
12437
12440
}
12438
12441
12439
12442
/*[clinic input]
12443
+ @text_signature "($self, sub[, start[, end]], /)"
12440
12444
str.rindex as unicode_rindex = str.count
12441
12445
12442
12446
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
@@ -12448,7 +12452,7 @@ Raises ValueError when the substring is not found.
12448
12452
static Py_ssize_t
12449
12453
unicode_rindex_impl (PyObject * str , PyObject * substr , Py_ssize_t start ,
12450
12454
Py_ssize_t end )
12451
- /*[clinic end generated code: output=5f3aef124c867fe1 input=35943dead6c1ea9d ]*/
12455
+ /*[clinic end generated code: output=5f3aef124c867fe1 input=a931a2e77feb5e47 ]*/
12452
12456
{
12453
12457
Py_ssize_t result = any_find_slice (str , substr , start , end , -1 );
12454
12458
if (result == -1 ) {
0 commit comments