Home | History | Annotate | Download | only in simplejson

Lines Matching defs:end_idx

1030     Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1052 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1055 if (idx <= end_idx && str[idx] != '}') {
1056 while (idx <= end_idx) {
1082 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1083 if (idx > end_idx || str[idx] != ':') {
1088 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1116 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1119 if (idx > end_idx) break;
1130 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1133 /* verify that idx < end_idx, str[idx] should be '}' */
1134 if (idx > end_idx || str[idx] != '}') {
1135 raise_errmsg("Expecting object", pystr, end_idx);
1178 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1200 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1203 if (idx <= end_idx && str[idx] != '}') {
1204 while (idx <= end_idx) {
1231 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1232 if (idx > end_idx || str[idx] != ':') {
1237 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1265 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1269 if (idx > end_idx) break;
1280 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1284 /* verify that idx < end_idx, str[idx] should be '}' */
1285 if (idx > end_idx || str[idx] != '}') {
1286 raise_errmsg("Expecting object", pystr, end_idx);
1329 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1337 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1340 if (idx <= end_idx && str[idx] != ']') {
1341 while (idx <= end_idx) {
1360 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1363 if (idx > end_idx) break;
1374 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1378 /* verify that idx < end_idx, str[idx] should be ']' */
1379 if (idx > end_idx || str[idx] != ']') {
1380 raise_errmsg("Expecting object", pystr, end_idx);
1401 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1409 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1412 if (idx <= end_idx && str[idx] != ']') {
1413 while (idx <= end_idx) {
1432 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1435 if (idx > end_idx) break;
1446 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1450 /* verify that idx < end_idx, str[idx] should be ']' */
1451 if (idx > end_idx || str[idx] != ']') {
1452 raise_errmsg("Expecting object", pystr, end_idx);
1501 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1510 if (idx > end_idx) {
1519 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1532 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1535 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1539 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1546 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1549 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1604 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1613 if (idx > end_idx) {
1622 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1635 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1638 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1642 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1647 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1650 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;