743 Commits (0d3072e98d9be9cfcdccefd60dbaca2c19e8d889)

Author SHA1 Message Date
Martin v. Löwis 0d3072e98d Drop Py_UCS4_ functions. Closes #13246. 14 years ago
Victor Stinner 57ffa9d4ff PyUnicode_AsUnicodeCopy() uses PyUnicode_AsUnicodeAndSize() to get directly the length 15 years ago
Victor Stinner af9e4b8c29 Fix PyUnicode_InternImmortal(): PyUnicode_InternInPlace() may changes *p 15 years ago
Victor Stinner 9faa384bed Cast directly to unsigned char, instead of using Py_CHARMASK 15 years ago
Victor Stinner 9db1a8b69f Replace PyUnicodeObject* by PyObject* where it was irrevelant 15 years ago
Victor Stinner 0d60e87ad6 Fix data variable in _PyUnicode_Dump() for compact ASCII 15 years ago
Victor Stinner d8e61c348e Remove last references to the removed Unicode free list 15 years ago
Victor Stinner 065836ec9c PyUnicode_FSDecoder() ensures that the decoded string is ready 14 years ago
Victor Stinner dd18d3ad9e Fix unicode_subtype_new() on debug build 15 years ago
Ezio Melotti f881751ded Remove unused variable. 15 years ago
Ezio Melotti 931b8aac80 #12753: Add support for Unicode name aliases and named sequences. 15 years ago
Victor Stinner 6707293e75 Add consistency check to _PyUnicode_New() 15 years ago
Victor Stinner 3a50e7056e Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore 15 years ago
Benjamin Peterson 7a6debe79c remove some duplication 15 years ago
Victor Stinner f5cff56a1b Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 15 years ago
Antoine Pitrou f0b934b01a Reuse the stringlib in findchar(), and make its signature more convenient 15 years ago
Victor Stinner 55c991197b Optimize unicode_subscript() for step != 1 and ascii strings 15 years ago
Victor Stinner 127226ba69 Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX() 15 years ago
Victor Stinner 9e7a1bcfd6 Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr 15 years ago
Antoine Pitrou dd4e2f0153 Issue #13155: Optimize finding the optimal character width of an unicode string 15 years ago
Victor Stinner 49a0a21f37 Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless 15 years ago
Victor Stinner 983b1434bd Backed out changeset 952d91a7d376 15 years ago
Antoine Pitrou e55ad2dff0 Relax condition 15 years ago
Victor Stinner 4e10100dee Fix compiler warning in _PyUnicode_FromUCS2() 15 years ago
Antoine Pitrou 950468e553 Use _PyUnicode_CONVERT_BYTES() where applicable. 15 years ago
Victor Stinner 577db2c9f0 PyUnicode_AsUnicodeCopy() now checks if PyUnicode_AsUnicode() failed 15 years ago
Victor Stinner c4f281eba3 Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead 15 years ago
Antoine Pitrou e459a0877e Issue #13136: speed up conversion between different character widths. 15 years ago
Antoine Pitrou 2871698546 /* Remove unused code. It has been committed out since 2000 (!). */ 15 years ago
Antoine Pitrou 53bb548f22 Avoid exporting private helpers 15 years ago
Victor Stinner 794d567b17 any_find_slice() doesn't use callbacks anymore 15 years ago
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers. 15 years ago
Antoine Pitrou eaf139b3fc Fix typo in the PyUnicode_Find() implementation 15 years ago
Martin v. Löwis c47adb04b3 Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. 15 years ago
Victor Stinner dd07732af5 PyUnicode_Join() calls directly memcpy() if all strings are of the same kind 15 years ago
Antoine Pitrou 978b9d2a27 Fix formatting memory consumption with very large padding specifications 15 years ago
Victor Stinner 59de0ee9e0 str.replace(a, a) is now returning str unchanged if a is a 15 years ago
Antoine Pitrou 5c0ba36d5f Fix massive slowdown in string formatting with the % operator 15 years ago
Antoine Pitrou 7c46da7993 Ensure that 1-char singletons get used 15 years ago
Victor Stinner c6f0df7b20 Fix PyUnicode_Join() for len==1 and non-exact string 15 years ago
Antoine Pitrou 15a66cf134 Fix compilation under Windows 15 years ago
Victor Stinner 200f21340d Fix assertion in unicode_adjust_maxchar() 15 years ago
Victor Stinner acf47b807f Fix my last change on PyUnicode_Join(): don't process separator if len==1 15 years ago
Victor Stinner 25a4b29c95 str.replace() avoids memory when it's possible 15 years ago
Victor Stinner 56c161ab00 _copy_characters() fails more quickly in debug mode on inconsistent state 15 years ago
Victor Stinner c729b8e92f Fix a compiler warning: don't define unicode_is_singleton() in release mode 15 years ago
Victor Stinner fb9ea8c57e Don't check for the maximum character when copying from unicodeobject.c 15 years ago
Victor Stinner 05d1189566 Fix post-condition in unicode_repr(): check the result, not the input 15 years ago
Victor Stinner f48323e3b3 replace() uses unicode_fromascii() if the input and replace string is ASCII 15 years ago
Victor Stinner 0617b6e18b unicode_fromascii() checks that the input is ASCII in debug mode 15 years ago