diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-10 14:36:02 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-10 14:36:02 (GMT) |
commit | ca5f91b888bc0056fc08d062f65cc783bbba8532 (patch) | |
tree | 6f40cd659395052192a79984ab96d6c4709eb491 /Objects/stringlib/ucs2lib.h | |
parent | fda08b0860e4f5d61c54021efc56fd7893b4b391 (diff) | |
download | cpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.zip cpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.tar.gz cpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.tar.bz2 |
Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka.
Diffstat (limited to 'Objects/stringlib/ucs2lib.h')
-rw-r--r-- | Objects/stringlib/ucs2lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/ucs2lib.h b/Objects/stringlib/ucs2lib.h index a508905..45e5729 100644 --- a/Objects/stringlib/ucs2lib.h +++ b/Objects/stringlib/ucs2lib.h @@ -7,6 +7,7 @@ #define STRINGLIB(F) ucs2lib_##F #define STRINGLIB_OBJECT PyUnicodeObject #define STRINGLIB_SIZEOF_CHAR 2 +#define STRINGLIB_MAX_CHAR 0xFFFFu #define STRINGLIB_CHAR Py_UCS2 #define STRINGLIB_TYPE_NAME "unicode" #define STRINGLIB_PARSE_CODE "U" |