Home | History | Annotate | Download | only in Modules

Lines Matching defs:end_idx

891     Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
909 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
912 if (idx <= end_idx && str[idx] != '}') {
913 while (idx <= end_idx) {
925 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
926 if (idx > end_idx || str[idx] != ':') {
931 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
951 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
954 if (idx > end_idx) break;
965 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
968 /* verify that idx < end_idx, str[idx] should be '}' */
969 if (idx > end_idx || str[idx] != '}') {
970 raise_errmsg("Expecting object", pystr, end_idx);
1018 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1035 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1038 if (idx <= end_idx && str[idx] != '}') {
1039 while (idx <= end_idx) {
1051 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1052 if (idx > end_idx || str[idx] != ':') {
1057 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1077 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1080 if (idx > end_idx) break;
1091 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1095 /* verify that idx < end_idx, str[idx] should be '}' */
1096 if (idx > end_idx || str[idx] != '}') {
1097 raise_errmsg("Expecting object", pystr, end_idx);
1145 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1153 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1156 if (idx <= end_idx && str[idx] != ']') {
1157 while (idx <= end_idx) {
1171 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1174 if (idx > end_idx) break;
1185 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1189 /* verify that idx < end_idx, str[idx] should be ']' */
1190 if (idx > end_idx || str[idx] != ']') {
1191 raise_errmsg("Expecting object", pystr, end_idx);
1212 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1220 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1223 if (idx <= end_idx && str[idx] != ']') {
1224 while (idx <= end_idx) {
1238 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1241 if (idx > end_idx) break;
1252 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++;
1256 /* verify that idx < end_idx, str[idx] should be ']' */
1257 if (idx > end_idx || str[idx] != ']') {
1258 raise_errmsg("Expecting object", pystr, end_idx);
1307 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1;
1316 if (idx > end_idx) {
1325 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1338 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1341 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1345 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1352 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1355 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1409 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1;
1418 if (idx > end_idx) {
1427 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1440 if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
1443 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
1447 if (idx < end_idx && (str[idx] == 'e' || str[idx] == 'E')) {
1452 if (idx < end_idx && (str[idx] == '-' || str[idx] == '+')) idx++;
1455 while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;