Lines Matching defs:index
197 /* index to where we are inside field_name */
198 Py_ssize_t index;
207 self->index = start;
217 name->start = self->index;
220 while (self->index < self->str.end) {
221 c = PyUnicode_READ_CHAR(self->str.str, self->index++);
226 self->index--;
234 name->end = self->index;
245 name->start = self->index;
248 while (self->index < self->str.end) {
249 c = PyUnicode_READ_CHAR(self->str.str, self->index++);
267 name->end = self->index-1;
277 if (self->index >= self->str.end)
280 switch (PyUnicode_READ_CHAR(self->str.str, self->index++)) {
347 /* see if "first" is an integer, in which case it's used as an index */
354 /* If the field name is omitted or if we have a numeric index
375 index. */
404 Py_ssize_t index;
408 &index, &rest, auto_number)) {
412 if (index == -1) {
444 obj = PySequence_GetItem(args, index);
447 "Replacement index %zd out of range for positional "
449 index);
455 while ((ok = FieldNameIterator_next(&rest, &is_attribute, &index,
464 if (index == -1)
468 tmp = getitem_sequence(obj, index);
471 tmp = getitem_idx(obj, index);
1158 false if we used index syntax (e.g., '[foo]')