]> granicus.if.org Git - python/commit
Add PyUnicode_AsStringAndSize(), which is like PyUnicode_AsString() but
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 13:53:23 +0000 (13:53 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 13:53:23 +0000 (13:53 +0000)
commit7d1df6c9b1a7e075c03c4790f47bc83e0104579f
tree6dceba59593ca682c88dd1a699fec2fc51f78129
parent9befa93b04ee0c485615d87e4b34dcfe5e811194
Add PyUnicode_AsStringAndSize(), which is like PyUnicode_AsString() but
has an extra (optional) output parameter through which it returns the size.
Use this in a few places where I used PyUnicode_AsString() + strlen(),
and in one new place (which fixes test_pep263).
Include/unicodeobject.h
Modules/_sqlite/statement.c
Objects/unicodeobject.c
Parser/tokenizer.c