• Home
  • Raw
  • Download

Lines Matching refs:_PyUnicode_WSTR

127 #define _PyUnicode_WSTR(op)                             \  macro
166 (_PyUnicode_WSTR(unicode) == PyUnicode_DATA(op)))
178 ((_PyUnicode_WSTR(op) && \
180 _PyUnicode_WSTR(op) != PyUnicode_DATA(op))))
638 wchar_t ch = _PyUnicode_WSTR(unicode)[0]; in unicode_result_wchar()
1090 _PyUnicode_WSTR(unicode) = PyUnicode_DATA(unicode); in resize_compact()
1095 PyObject_Free(_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()
1266 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_Malloc(new_size); in _PyUnicode_New()
1267 if (!_PyUnicode_WSTR(unicode)) { in _PyUnicode_New()
1280 _PyUnicode_WSTR(unicode)[0] = 0; in _PyUnicode_New()
1281 _PyUnicode_WSTR(unicode)[length] = 0; in _PyUnicode_New()
1483 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1487 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1501 _PyUnicode_WSTR(unicode) = (wchar_t *)data; in PyUnicode_New()
1505 _PyUnicode_WSTR(unicode) = NULL; in PyUnicode_New()
1833 assert(_PyUnicode_WSTR(unicode) != NULL); in _PyUnicode_Ready()
1839 end = _PyUnicode_WSTR(unicode) + _PyUnicode_WSTR_LENGTH(unicode); in _PyUnicode_Ready()
1840 if (find_maxchar_surrogates(_PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1851 _PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1866 PyObject_Free(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1867 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1878 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode); in _PyUnicode_Ready()
1893 _PyUnicode_WSTR(unicode), end, in _PyUnicode_Ready()
1900 PyObject_Free(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1901 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1926 unicode_convert_wchar_to_ucs4(_PyUnicode_WSTR(unicode), end, unicode); in _PyUnicode_Ready()
1927 PyObject_Free(_PyUnicode_WSTR(unicode)); in _PyUnicode_Ready()
1928 _PyUnicode_WSTR(unicode) = NULL; in _PyUnicode_Ready()
1933 _PyUnicode_DATA_ANY(unicode) = _PyUnicode_WSTR(unicode); in _PyUnicode_Ready()
1982 PyObject_Free(_PyUnicode_WSTR(unicode)); in unicode_dealloc()
3220 if (_PyUnicode_WSTR(unicode) != NULL) { in unicode_get_widechar_size()
3248 const wchar_t *wstr = _PyUnicode_WSTR(unicode); in unicode_copy_as_widechar()
4275 Py_UNICODE *w = _PyUnicode_WSTR(unicode); in PyUnicode_AsUnicodeAndSize()
4292 _PyUnicode_WSTR(unicode) = w; in PyUnicode_AsUnicodeAndSize()
4335 if (_PyUnicode_WSTR(unicode) == NULL) { in PyUnicode_GetSize()
11493 const wchar_t *ws = _PyUnicode_WSTR(uni); in PyUnicode_CompareWithASCIIString()
11552 p = _PyUnicode_WSTR(unicode); in non_ready_unicode_equal_to_ascii_string()
12656 const wchar_t *wstr = _PyUnicode_WSTR(self); in PyUnicode_IsIdentifier()
15664 _PyUnicode_WSTR(self) = NULL; in unicode_subtype_new()
15707 _PyUnicode_WSTR(self) = (wchar_t *)data; in unicode_subtype_new()