Lines Matching refs:_PyUnicode_WSTR

130 #define _PyUnicode_WSTR(op)                             \
169 (_PyUnicode_WSTR(unicode) == PyUnicode_DATA(op)))
181 ((_PyUnicode_WSTR(op) && \
183 _PyUnicode_WSTR(op) != PyUnicode_DATA(op))))
631 wchar_t ch = _PyUnicode_WSTR(unicode)[0];
1071 _PyUnicode_WSTR(unicode) = PyUnicode_DATA(unicode);
1076 PyObject_Free(_PyUnicode_WSTR(unicode));
1077 _PyUnicode_WSTR(unicode) = NULL;
1131 _PyUnicode_WSTR(unicode) = data;
1143 if (share_wstr || _PyUnicode_WSTR(unicode) == NULL) {
1148 assert(_PyUnicode_WSTR(unicode) != NULL);
1156 wstr = _PyUnicode_WSTR(unicode);
1162 _PyUnicode_WSTR(unicode) = wstr;
1163 _PyUnicode_WSTR(unicode)[length] = 0;
1194 memcpy(_PyUnicode_WSTR(w), _PyUnicode_WSTR(unicode),
1247 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_Malloc(new_size);
1248 if (!_PyUnicode_WSTR(unicode)) {
1261 _PyUnicode_WSTR(unicode)[0] = 0;
1262 _PyUnicode_WSTR(unicode)[length] = 0;
1445 _PyUnicode_WSTR(unicode) = NULL;
1449 _PyUnicode_WSTR(unicode) = NULL;
1463 _PyUnicode_WSTR(unicode) = (wchar_t *)data;
1467 _PyUnicode_WSTR(unicode) = NULL;
1795 assert(_PyUnicode_WSTR(unicode) != NULL);
1801 end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode);
1802 if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end,
1813 _PyUnicode_WSTR(unicode), end,
1828 PyObject_Free(_PyUnicode_WSTR(unicode));
1829 _PyUnicode_WSTR(unicode) = NULL;
1840 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode);
1855 _PyUnicode_WSTR(unicode), end,
1862 PyObject_Free(_PyUnicode_WSTR(unicode));
1863 _PyUnicode_WSTR(unicode) = NULL;
1888 unicode_convert_wchar_to_ucs4(_PyUnicode_WSTR(unicode), end, unicode);
1889 PyObject_Free(_PyUnicode_WSTR(unicode));
1890 _PyUnicode_WSTR(unicode) = NULL;
1895 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode);
1947 PyObject_Free(_PyUnicode_WSTR(unicode));
3166 if (_PyUnicode_WSTR(unicode) != NULL) {
3194 const wchar_t *wstr = _PyUnicode_WSTR(unicode);
4205 Py_UNICODE *w = _PyUnicode_WSTR(unicode);
4222 _PyUnicode_WSTR(unicode) = w;
4265 if (_PyUnicode_WSTR(unicode) == NULL) {
11180 const wchar_t *ws = _PyUnicode_WSTR(uni);
11239 p = _PyUnicode_WSTR(unicode);
12341 const wchar_t *wstr = _PyUnicode_WSTR(self);
15335 _PyUnicode_WSTR(self) = NULL;
15378 _PyUnicode_WSTR(self) = (wchar_t *)data;