diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-11 23:13:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-11 23:13:42 (GMT) |
commit | 7a9105a380779942bfe45936d074c8181dee14d9 (patch) | |
tree | 59c93c9e202c049e4cff0932d57bf99fed7a78ca /Include | |
parent | 488fa49acffda76a6a81d3a14f85f2c65496de54 (diff) | |
download | cpython-7a9105a380779942bfe45936d074c8181dee14d9.zip cpython-7a9105a380779942bfe45936d074c8181dee14d9.tar.gz cpython-7a9105a380779942bfe45936d074c8181dee14d9.tar.bz2 |
resize_copy() now supports legacy ready strings
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index ecf8386..be45b02 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -220,6 +220,7 @@ typedef struct { - compact ascii: * structure = PyASCIIObject + * test: PyUnicode_IS_COMPACT_ASCII(op) * kind = PyUnicode_1BYTE_KIND * compact = 1 * ascii = 1 @@ -231,6 +232,7 @@ typedef struct { - compact: * structure = PyCompactUnicodeObject + * test: PyUnicode_IS_ASCII(op) && !PyUnicode_IS_COMPACT(op) * kind = PyUnicode_1BYTE_KIND, PyUnicode_2BYTE_KIND or PyUnicode_4BYTE_KIND * compact = 1 @@ -247,6 +249,7 @@ typedef struct { - legacy string, not ready: * structure = PyUnicodeObject + * test: kind == PyUnicode_WCHAR_KIND * length = 0 (use wstr_length) * hash = -1 * kind = PyUnicode_WCHAR_KIND @@ -262,6 +265,7 @@ typedef struct { - legacy string, ready: * structure = PyUnicodeObject structure + * test: !PyUnicode_IS_COMPACT(op) && kind != PyUnicode_WCHAR_KIND * kind = PyUnicode_1BYTE_KIND, PyUnicode_2BYTE_KIND or PyUnicode_4BYTE_KIND * compact = 0 |