Lines Matching refs:end_idx

689     Py_ssize_t end_idx;
701 end_idx = PyUnicode_GET_LENGTH(pystr) - 1;
711 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind,str, idx))) idx++;
714 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '}') {
719 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '"') {
736 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
737 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ':') {
742 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
770 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
773 if (idx <= end_idx && PyUnicode_READ(kind, str, idx) == '}')
775 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ',') {
782 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
819 Py_ssize_t end_idx;
833 end_idx = PyUnicode_GET_LENGTH(pystr) - 1;
836 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
839 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ']') {
854 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
857 if (idx <= end_idx && PyUnicode_READ(kind, str, idx) == ']')
859 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ',') {
866 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
870 /* verify that idx < end_idx, PyUnicode_READ(kind, str, idx) should be ']' */
871 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ']') {
872 raise_errmsg("Expecting value", pystr, end_idx);
922 Py_ssize_t end_idx;
934 end_idx = PyUnicode_GET_LENGTH(pystr) - 1;
939 if (idx > end_idx) {
948 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
961 if (idx < end_idx && PyUnicode_READ(kind, str, idx) == '.' && PyUnicode_READ(kind, str, idx + 1) >= '0' && PyUnicode_READ(kind, str, idx + 1) <= '9') {
964 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
968 if (idx < end_idx && (PyUnicode_READ(kind, str, idx) == 'e' || PyUnicode_READ(kind, str, idx) == 'E')) {
973 if (idx < end_idx && (PyUnicode_READ(kind, str, idx) == '-' || PyUnicode_READ(kind, str, idx) == '+')) idx++;
976 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;