Home | History | Annotate | Download | only in Modules

Lines Matching refs:kind

171     int kind;
178 kind = PyUnicode_KIND(pystr);
182 Py_UCS4 c = PyUnicode_READ(kind, input, i);
211 Py_UCS4 c = PyUnicode_READ(kind, input, i);
236 int kind;
245 kind = PyUnicode_KIND(pystr);
249 Py_UCS4 c = PyUnicode_READ(kind, input, i);
273 kind = PyUnicode_KIND(rval);
279 Py_UCS4 c = PyUnicode_READ(kind, input, i); \
304 if (kind == PyUnicode_1BYTE_KIND) {
307 } else if (kind == PyUnicode_2BYTE_KIND) {
312 assert(kind == PyUnicode_4BYTE_KIND);
413 int kind;
422 kind = PyUnicode_KIND(pystr);
432 c = PyUnicode_READ(kind, buf, next);
449 kind,
450 (char*)buf + kind * end,
465 c = PyUnicode_READ(kind, buf, next);
495 Py_UCS4 digit = PyUnicode_READ(kind, buf, next);
514 PyUnicode_READ(kind, buf, next++) == '\\' &&
515 PyUnicode_READ(kind, buf, next++) == 'u') {
520 Py_UCS4 digit = PyUnicode_READ(kind, buf, next);
708 int kind;
724 kind = PyUnicode_KIND(pystr);
735 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind,str, idx))) idx++;
738 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '}') {
743 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '"') {
763 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
764 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ':') {
769 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
797 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
800 if (idx <= end_idx && PyUnicode_READ(kind, str, idx) == '}')
802 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ',') {
809 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
845 int kind;
859 kind = PyUnicode_KIND(pystr);
863 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
866 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ']') {
881 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
884 if (idx <= end_idx && PyUnicode_READ(kind, str, idx) == ']')
886 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ',') {
893 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++;
897 /* verify that idx < end_idx, PyUnicode_READ(kind, str, idx) should be ']' */
898 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ']') {
948 int kind;
960 kind = PyUnicode_KIND(pystr);
964 if (PyUnicode_READ(kind, str, idx) == '-') {
973 if (PyUnicode_READ(kind, str, idx) >= '1' && PyUnicode_READ(kind, str, idx) <= '9') {
975 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
978 else if (PyUnicode_READ(kind, str, idx) == '0') {
988 if (idx < end_idx && PyUnicode_READ(kind, str, idx) == '.' && PyUnicode_READ(kind, str, idx + 1) >= '0' && PyUnicode_READ(kind, str, idx + 1) <= '9') {
991 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
995 if (idx < end_idx && (PyUnicode_READ(kind, str, idx) == 'e' || PyUnicode_READ(kind, str, idx) == 'E')) {
1000 if (idx < end_idx && (PyUnicode_READ(kind, str, idx) == '-' || PyUnicode_READ(kind, str, idx) == '+')) idx++;
1003 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
1006 if (PyUnicode_READ(kind, str, idx - 1) >= '0' && PyUnicode_READ(kind, str, idx - 1) <= '9') {
1023 numstr = PyUnicode_FromKindAndData(kind,
1024 (char*)str + kind * start,
1041 buf[i] = (char) PyUnicode_READ(kind, str, i + start);
1056 /* Read one JSON term (of any kind) from PyUnicode pystr.
1065 int kind;
1073 kind = PyUnicode_KIND(pystr);
1085 switch (PyUnicode_READ(kind, str, idx)) {
1110 if ((idx + 3 < length) && PyUnicode_READ(kind, str, idx + 1) == 'u' && PyUnicode_READ(kind, str, idx + 2) == 'l' && PyUnicode_READ(kind, str, idx + 3) == 'l') {
1118 if ((idx + 3 < length) && PyUnicode_READ(kind, str, idx + 1) == 'r' && PyUnicode_READ(kind, str, idx + 2) == 'u' && PyUnicode_READ(kind, str, idx + 3) == 'e') {
1126 if ((idx + 4 < length) && PyUnicode_READ(kind, str, idx + 1) == 'a' &&
1127 PyUnicode_READ(kind, str, idx + 2) == 'l' &&
1128 PyUnicode_READ(kind, str, idx + 3) == 's' &&
1129 PyUnicode_READ(kind, str, idx + 4) == 'e') {
1137 if ((idx + 2 < length) && PyUnicode_READ(kind, str, idx + 1) == 'a' &&
1138 PyUnicode_READ(kind, str, idx + 2) == 'N') {
1144 if ((idx + 7 < length) && PyUnicode_READ(kind, str, idx + 1) == 'n' &&
1145 PyUnicode_READ(kind, str, idx + 2) == 'f' &&
1146 PyUnicode_READ(kind, str, idx + 3) == 'i' &&
1147 PyUnicode_READ(kind, str, idx + 4) == 'n' &&
1148 PyUnicode_READ(kind, str, idx + 5) == 'i' &&
1149 PyUnicode_READ(kind, str, idx + 6) == 't' &&
1150 PyUnicode_READ(kind, str, idx + 7) == 'y') {
1156 if ((idx + 8 < length) && PyUnicode_READ(kind, str, idx + 1) == 'I' &&
1157 PyUnicode_READ(kind, str, idx + 2) == 'n' &&
1158 PyUnicode_READ(kind, str, idx + 3) == 'f' &&
1159 PyUnicode_READ(kind, str, idx + 4) == 'i' &&
1160 PyUnicode_READ(kind, str, idx + 5) == 'n' &&
1161 PyUnicode_READ(kind, str, idx + 6) == 'i' &&
1162 PyUnicode_READ(kind, str, idx + 7) == 't' &&
1163 PyUnicode_READ(kind, str, idx + 8) == 'y') {