Home | History | Annotate | Download | only in Modules

Lines Matching defs:end_idx

867     Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;

882 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
885 if (idx <= end_idx && str[idx] != '}') {
886 while (idx <= end_idx) {
898 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
899 if (idx > end_idx || str[idx] != ':') {
904 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
924 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
927 if (idx > end_idx) break;
938 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
941 /* verify that idx < end_idx, str[idx] should be '}' */
942 if (idx > end_idx || str[idx] != '}') {
943 raise_errmsg("Expecting object", pystr, end_idx);
991 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1005 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1008 if (idx <= end_idx && str[idx] != '}') {
1009 while (idx <= end_idx) {
1021 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1022 if (idx > end_idx || str[idx] != ':') {
1027 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1047 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1050 if (idx > end_idx) break;
1061 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1065 /* verify that idx < end_idx, str[idx] should be '}' */
1066 if (idx > end_idx || str[idx] != '}') {
1067 raise_errmsg("Expecting object", pystr, end_idx);
1115 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1123 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1126 if (idx <= end_idx && str[idx] != ']') {
1127 while (idx <= end_idx) {
1141 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1144 if (idx > end_idx) break;
1155 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1159 /* verify that idx < end_idx, str[idx] should be ']' */
1160 if (idx > end_idx || str[idx] != ']') {
1161 raise_errmsg("Expecting object", pystr, end_idx);
1182 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1190 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1193 if (idx <= end_idx && str[idx] != ']') {
1194 while (idx <= end_idx) {
1208 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1211 if (idx > end_idx) break;
1222 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1226 /* verify that idx < end_idx, str[idx] should be ']' */
1227 if (idx > end_idx || str[idx] != ']') {
1228 raise_errmsg("Expecting object", pystr, end_idx);
1277 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1286 if (idx > end_idx) {
1295 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1308 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1311 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1315 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1322 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1325 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1379 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1388 if (idx > end_idx) {
1397 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1410 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1413 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1417 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1422 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1425 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;