Lines Matching refs:num_surrogates
1638 Py_UCS4 *maxchar, Py_ssize_t *num_surrogates) in find_maxchar_surrogates() argument
1643 assert(num_surrogates != NULL && maxchar != NULL); in find_maxchar_surrogates()
1644 *num_surrogates = 0; in find_maxchar_surrogates()
1654 ++(*num_surrogates); in find_maxchar_surrogates()
1681 Py_ssize_t num_surrogates; in _PyUnicode_Ready() local
1700 &maxchar, &num_surrogates) == -1) in _PyUnicode_Ready()
1732 assert(num_surrogates == 0 && in _PyUnicode_Ready()
1769 length_wo_surrogates = _PyUnicode_WSTR_LENGTH(unicode) - num_surrogates; in _PyUnicode_Ready()
1790 assert(num_surrogates == 0); in _PyUnicode_Ready()
2049 Py_ssize_t num_surrogates; in PyUnicode_FromWideChar() local
2075 &maxchar, &num_surrogates) == -1) in PyUnicode_FromWideChar()
2078 unicode = PyUnicode_New(size - num_surrogates, maxchar); in PyUnicode_FromWideChar()
2101 assert(num_surrogates == 0); in PyUnicode_FromWideChar()
3863 Py_ssize_t num_surrogates; in PyUnicode_AsUnicodeAndSize() local
3881 num_surrogates = 0; in PyUnicode_AsUnicodeAndSize()
3885 ++num_surrogates; in PyUnicode_AsUnicodeAndSize()
3889 sizeof(wchar_t) * (_PyUnicode_LENGTH(unicode) + 1 + num_surrogates)); in PyUnicode_AsUnicodeAndSize()
3894 _PyUnicode_WSTR_LENGTH(unicode) = _PyUnicode_LENGTH(unicode) + num_surrogates; in PyUnicode_AsUnicodeAndSize()