Lines Matching refs:str
687 const void *str;
699 str = PyUnicode_DATA(pystr);
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++;
817 const void *str;
831 str = PyUnicode_DATA(pystr);
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) != ']') {
920 const void *str;
932 str = PyUnicode_DATA(pystr);
937 if (PyUnicode_READ(kind, str, idx) == '-') {
946 if (PyUnicode_READ(kind, str, idx) >= '1' && PyUnicode_READ(kind, str, idx) <= '9') {
948 while (idx <= end_idx && PyUnicode_READ(kind, str, idx) >= '0' && PyUnicode_READ(kind, str, idx) <= '9') idx++;
951 else if (PyUnicode_READ(kind, str, idx) == '0') {
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++;
979 if (PyUnicode_READ(kind, str, idx - 1) >= '0' && PyUnicode_READ(kind, str, idx - 1) <= '9') {
997 (char*)str + kind * start,
1014 buf[i] = (char) PyUnicode_READ(kind, str, i + start);
1037 const void *str;
1044 str = PyUnicode_DATA(pystr);
1057 switch (PyUnicode_READ(kind, str, idx)) {
1079 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') {
1086 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') {
1093 if ((idx + 4 < length) && PyUnicode_READ(kind, str, idx + 1) == 'a' &&
1094 PyUnicode_READ(kind, str, idx + 2) == 'l' &&
1095 PyUnicode_READ(kind, str, idx + 3) == 's' &&
1096 PyUnicode_READ(kind, str, idx + 4) == 'e') {
1103 if ((idx + 2 < length) && PyUnicode_READ(kind, str, idx + 1) == 'a' &&
1104 PyUnicode_READ(kind, str, idx + 2) == 'N') {
1110 if ((idx + 7 < length) && PyUnicode_READ(kind, str, idx + 1) == 'n' &&
1111 PyUnicode_READ(kind, str, idx + 2) == 'f' &&
1112 PyUnicode_READ(kind, str, idx + 3) == 'i' &&
1113 PyUnicode_READ(kind, str, idx + 4) == 'n' &&
1114 PyUnicode_READ(kind, str, idx + 5) == 'i' &&
1115 PyUnicode_READ(kind, str, idx + 6) == 't' &&
1116 PyUnicode_READ(kind, str, idx + 7) == 'y') {
1122 if ((idx + 8 < length) && PyUnicode_READ(kind, str, idx + 1) == 'I' &&
1123 PyUnicode_READ(kind, str, idx + 2) == 'n' &&
1124 PyUnicode_READ(kind, str, idx + 3) == 'f' &&
1125 PyUnicode_READ(kind, str, idx + 4) == 'i' &&
1126 PyUnicode_READ(kind, str, idx + 5) == 'n' &&
1127 PyUnicode_READ(kind, str, idx + 6) == 'i' &&
1128 PyUnicode_READ(kind, str, idx + 7) == 't' &&
1129 PyUnicode_READ(kind, str, idx + 8) == 'y') {
1141 /* Python callable interface to scan_once_{str,unicode} */
1596 "keys must be str, int, float, bool or None, "