Home | History | Annotate | Download | only in Modules

Lines Matching defs:end_idx

890     Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;

905 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
908 if (idx <= end_idx && str[idx] != '}') {
909 while (idx <= end_idx) {
921 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
922 if (idx > end_idx || str[idx] != ':') {
927 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
947 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
950 if (idx > end_idx) break;
961 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
964 /* verify that idx < end_idx, str[idx] should be '}' */
965 if (idx > end_idx || str[idx] != '}') {
966 raise_errmsg("Expecting object", pystr, end_idx);
1014 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1028 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1031 if (idx <= end_idx && str[idx] != '}') {
1032 while (idx <= end_idx) {
1044 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1045 if (idx > end_idx || str[idx] != ':') {
1050 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1070 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1073 if (idx > end_idx) break;
1084 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1088 /* verify that idx < end_idx, str[idx] should be '}' */
1089 if (idx > end_idx || str[idx] != '}') {
1090 raise_errmsg("Expecting object", pystr, end_idx);
1138 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1146 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1149 if (idx <= end_idx && str[idx] != ']') {
1150 while (idx <= end_idx) {
1164 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1167 if (idx > end_idx) break;
1178 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1182 /* verify that idx < end_idx, str[idx] should be ']' */
1183 if (idx > end_idx || str[idx] != ']') {
1184 raise_errmsg("Expecting object", pystr, end_idx);
1205 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1213 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1216 if (idx <= end_idx && str[idx] != ']') {
1217 while (idx <= end_idx) {
1231 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1234 if (idx > end_idx) break;
1245 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1249 /* verify that idx < end_idx, str[idx] should be ']' */
1250 if (idx > end_idx || str[idx] != ']') {
1251 raise_errmsg("Expecting object", pystr, end_idx);
1300 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1309 if (idx > end_idx) {
1318 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1331 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1334 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1338 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1345 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1348 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1402 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1411 if (idx > end_idx) {
1420 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1433 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1436 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1440 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1445 if (idx < end_idx
1448 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;