commit | a1d12bb1197d9335fcb62aad7fb0df56098197ac | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sun Dec 11 21:53:09 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sun Dec 11 21:53:09 2011 +0100 |
tree | 2d87a6cf840edc35eb0fc9f113580c9ff95865b7 | |
parent | 382955ff4e84276c4d52751154001f3cfa5b938d [diff] |
Call directly PyUnicode_DecodeUTF8Stateful() instead of PyUnicode_DecodeUTF8() * Remove micro-optimization from PyUnicode_FromStringAndSize(): PyUnicode_DecodeUTF8Stateful() has already these optimizations (for size=0 and one ascii char). * Rename utf8_max_char_size_and_char_count() to utf8_scanner(), and remove an useless variable