Lines Matching refs:_PyUnicode_WSTR
121 #define _PyUnicode_WSTR(op) \ macro
160 (_PyUnicode_WSTR(unicode) == PyUnicode_DATA(op)))
172 ((_PyUnicode_WSTR(op) && \
174 _PyUnicode_WSTR(op) != PyUnicode_DATA(op))))
644 wchar_t ch = _PyUnicode_WSTR(unicode)[0]; in unicode_result_wchar()
1090 _PyUnicode_WSTR(unicode) = PyUnicode_DATA(unicode); in resize_compact()
1095 PyObject_DEL(_PyUnicode_WSTR(unicode)); in resize_compact()
1096 _PyUnicode_WSTR(unicode) = NULL; in resize_compact()
1150 _PyUnicode_WSTR(unicode) = data; in resize_inplace()
1162 if (share_wstr || _PyUnicode_WSTR(unicode) == NULL) { in resize_inplace()
1167 assert(_PyUnicode_WSTR(unicode) != NULL); in resize_inplace()
1175 wstr = _PyUnicode_WSTR(unicode); in resize_inplace()
1181 _PyUnicode_WSTR(unicode) = wstr; in resize_inplace()
1182 _PyUnicode_WSTR(unicode)[length] = 0; in resize_inplace()
1213 memcpy(_PyUnicode_WSTR(w), _PyUnicode_WSTR(unicode), in resize_copy()
1267 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New()
1268 if (!_PyUnicode_WSTR(unicode)) { in _PyUnicode_New()
1281 _PyUnicode_WSTR(unicode)[0] = 0; in _PyUnicode_New()
1282 _PyUnicode_WSTR(unicode)[length] = 0; in _PyUnicode_New()
1467 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1471 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1485 _PyUnicode_WSTR(unicode) = (wchar_t *)data; in PyUnicode_New()
1489 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1817 assert(_PyUnicode_WSTR(unicode) != NULL); in _PyUnicode_Ready()
1823 end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode); in _PyUnicode_Ready()
1824 if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1835 _PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1850 PyObject_FREE(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1851 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1862 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode); in _PyUnicode_Ready()
1877 _PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1884 PyObject_FREE(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1885 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1910 unicode_convert_wchar_to_ucs4(_PyUnicode_WSTR(unicode), end, unicode); in _PyUnicode_Ready()
1911 PyObject_FREE(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1912 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1917 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode); in _PyUnicode_Ready()
1957 PyObject_DEL(_PyUnicode_WSTR(unicode)); in unicode_dealloc()
3118 if (_PyUnicode_WSTR(unicode) != NULL) { in unicode_get_widechar_size()
3146 wstr = _PyUnicode_WSTR(unicode); in unicode_copy_as_widechar()
4077 Py_UNICODE *w = _PyUnicode_WSTR(unicode); in PyUnicode_AsUnicodeAndSize()
4094 _PyUnicode_WSTR(unicode) = w; in PyUnicode_AsUnicodeAndSize()
4137 if (_PyUnicode_WSTR(unicode) == NULL) { in PyUnicode_GetSize()
11227 const wchar_t *ws = _PyUnicode_WSTR(uni); in PyUnicode_CompareWithASCIIString()
11286 p = _PyUnicode_WSTR(unicode); in non_ready_unicode_equal_to_ascii_string()
12384 const wchar_t *wstr = _PyUnicode_WSTR(self); in PyUnicode_IsIdentifier()
15411 _PyUnicode_WSTR(self) = NULL; in unicode_subtype_new()
15454 _PyUnicode_WSTR(self) = (wchar_t *)data; in unicode_subtype_new()