722 Commits (23a580fd7886bb5de8ea1bb14afa7225ea26ea56)

Author SHA1 Message Date
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
Antoine Pitrou e19aa388e8 When expandtabs() would be a no-op, don't create a duplicate string 15 years ago
Antoine Pitrou e71d574a39 Migrate str.expandtabs to the new API 15 years ago
Benjamin Peterson 7f3140ef80 fix parens 15 years ago
Benjamin Peterson 4bfce8f81f fix formatting 15 years ago
Benjamin Peterson ccc51c1fc6 fix compiler warnings 15 years ago
Victor Stinner b092365cc6 Move in-place Unicode append to its own subfunction 15 years ago
Victor Stinner a5f9163501 Reindent internal Unicode macros 15 years ago
Victor Stinner a41463c203 Document utf8_length and wstr_length states 15 years ago
Victor Stinner 9566311014 resize_inplace() sets utf8_length to zero if the utf8 is not shared8 15 years ago
Victor Stinner 9e9d689d85 PyUnicode_New() sets utf8_length to zero for latin1 15 years ago
Victor Stinner 016980454e Unicode: raise SystemError instead of ValueError or RuntimeError on invalid 15 years ago
Victor Stinner 7f11ad4594 Unicode: document when the wstr pointer is shared with data 15 years ago
Victor Stinner 03490918b7 Add _PyUnicode_HAS_WSTR_MEMORY() macro 15 years ago
Victor Stinner 9ce5a835bb PyUnicode_Join() checks output length in debug mode 15 years ago
Victor Stinner b803895355 Fix a compiler warning in PyUnicode_Append() 15 years ago
Victor Stinner 8cfcbed4e3 Improve string forms and PyUnicode_Resize() documentation 15 years ago
Victor Stinner c3cec7868b Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCII 15 years ago
Victor Stinner 14f8f02826 Fix PyUnicode_Partition(): str_in->str_obj 15 years ago
Victor Stinner bb10a1f759 Ensure that newly created strings use the most efficient store in debug mode 15 years ago
Victor Stinner 9310abbf40 Replace PyUnicodeObject* with PyObject* where it was inappropriate 15 years ago
Victor Stinner ce5faf673e unicodeobject.c doesn't make output strings ready in debug mode 15 years ago