[issue10542] Py_UNICODE_NEXT and other macros for surrogates
Alexander Belopolsky
report at bugs.python.org
Sat Nov 27 23:19:41 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg
<report at bugs.python.org> wrote:
..
> * same for the Py_UNICODE_NEXT() macro, i.e. Py_UCS4_NEXT()
>
> * in order to make the macro easier to understand, please rename it to
> Py_UCS4_READ_CODE_POINT(); that's a little more typing, but still
> a lot less than without the macro :-)
I am not sure Py_UCS4_ prefix is right here. (I agree on *SURROGATE*
methods.) The point of Py_UNICODE_NEXT(ptr, end) is that the pointers
ptr and end are Py_UNICODE* and the macro expands to *p++ on wide
builds. Maybe Py_UNICODE_NEXT_USC4?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10542>
_______________________________________
More information about the Python-bugs-list
mailing list