Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0da4146

Browse files
Remove Py_UNICODE_MATCH.
1 parent d6ba6b7 commit 0da4146

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Include/cpython/unicodeobject.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) {
8181
#define Py_UNICODE_LOW_SURROGATE(ch) (0xDC00 + ((ch) & 0x3FF))
8282

8383
#if HAVE_UNICODE_WCHAR_CACHE
84-
/* Check if substring matches at given offset. The offset must be
85-
valid, and the substring must not be empty. */
86-
87-
#define Py_UNICODE_MATCH(string, offset, substring) \
88-
((*((string)->wstr + (offset)) == *((substring)->wstr)) && \
89-
((*((string)->wstr + (offset) + (substring)->wstr_length-1) == *((substring)->wstr + (substring)->wstr_length-1))) && \
90-
!memcmp((string)->wstr + (offset), (substring)->wstr, (substring)->wstr_length*sizeof(Py_UNICODE)))
91-
#endif /* HAVE_UNICODE_WCHAR_CACHE */
92-
9384
/* --- Unicode Type ------------------------------------------------------- */
9485

9586
/* ASCII-only strings created through PyUnicode_New use the PyASCIIObject

0 commit comments

Comments
 (0)