42 Commits (c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e)

Author SHA1 Message Date
Victor Stinner c6b292cdee
bpo-29882: Add _Py_popcount32() function (GH-20518) 6 years ago
Victor Stinner d7c657d4b1
bpo-40302: UTF-32 encoder SWAB4() macro use a|b rather than a+b (GH-19572) 6 years ago
Victor Stinner 1ae035b7e8
bpo-40302: Add pycore_byteswap.h header file (GH-19552) 6 years ago
Serhiy Storchaka cd8295ff75
bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345) 6 years ago
Benjamin Peterson 51796e5d26
Update some www.unicode.org URLs to use HTTPS. (GH-18912) 6 years ago
Inada Naoki 02a4d57263
bpo-39087: Optimize PyUnicode_AsUTF8AndSize() (GH-18327) 6 years ago
Andy Lester e6be9b59a9
closes bpo-39605: Fix some casts to not cast away const. (GH-18453) 6 years ago
Serhiy Storchaka 894263ba80
bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) 7 years ago
Victor Stinner 709d23dee6
bpo-36775: _PyCoreConfig only uses wchar_t* (GH-13062) 7 years ago
Victor Stinner 3d4226a832
bpo-34523: Support surrogatepass in locale codecs (GH-8995) 8 years ago
Stefan Krah f432a3234f bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) 9 years ago
Serhiy Storchaka 998c9cdd42 Issue #28561: Clean up UTF-8 encoder: remove dead code, update comments, etc. 9 years ago
Victor Stinner 1a05d6c04d PEP 7 style for if/else in C 10 years ago
Raymond Hettinger 15f44ab043 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 10 years ago
Serhiy Storchaka bcde10aa7e Issue #26765: Ensure that bytes- and unicode-specific stringlib files are used 10 years ago
Victor Stinner 6bd525b656 Optimize error handlers of ASCII and Latin1 encoders when the replacement 10 years ago
Victor Stinner ce179bf6ba Add _PyBytesWriter_WriteBytes() to factorize the code 10 years ago
Victor Stinner ad7715891e _PyBytesWriter: simplify code to avoid "prealloc" parameters 10 years ago
Victor Stinner e7bf86cd7d Optimize backslashreplace error handler 10 years ago
Victor Stinner fdfbf78114 Issue #25318: Add _PyBytesWriter API 10 years ago
Victor Stinner 01ada3996b Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error 10 years ago
Serhiy Storchaka 7e29eea926 Fixed typos in comments. 11 years ago
Serhiy Storchaka 0d4df752ac Issue #15027: The UTF-32 encoder is now 3x to 7x faster. 11 years ago
Serhiy Storchaka 3079328d29 Reverted changeset b72c5573c5e7 (issue #15027). 12 years ago
Serhiy Storchaka 583a93943c Issue #15027: Rewrite the UTF-32 encoder. It is now 1.6x to 3.5x faster. 12 years ago
Serhiy Storchaka dc2fd5101a Remove dead code committed in issue #12892. 12 years ago
Serhiy Storchaka 58cf607d13 Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates. 12 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Victor Stinner ab60de478d Issue #8271: Fix compilation on Windows 13 years ago
Ezio Melotti f7ed5d111b #8271: the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. 13 years ago
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified 13 years ago
Antoine Pitrou ca8aa4acf6 Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 14 years ago
Mark Dickinson 01ac8b6ab1 Use correct types for ASCII_CHAR_MASK integer constants. 14 years ago
Mark Dickinson 106c4145ff Issue #14923: Optimize continuation-byte check in UTF-8 decoding. Patch by Serhiy Storchaka. 14 years ago
Antoine Pitrou 27f6a3b0bf Issue #15026: utf-16 encoding is now significantly faster (up to 10x). 14 years ago
Antoine Pitrou 63065d761e Issue #14624: UTF-16 decoding is now 3x to 4x faster on various inputs. 14 years ago
Antoine Pitrou ca5f91b888 Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka. 14 years ago
Victor Stinner 6099a03202 Issue #13624: Write a specialized UTF-8 encoder to allow more optimization 14 years ago
Antoine Pitrou 0a3229de6b Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case. 14 years ago