213 Commits (110ee34e4179727d2c8bf56cb655a89c561c30e0)

Author SHA1 Message Date
Antoine Pitrou 27f6a3b0bf Issue #15026: utf-16 encoding is now significantly faster (up to 10x). 14 years ago
Victor Stinner d7b7c7472b Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield 14 years ago
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 14 years ago
Victor Stinner ece58deb9f Close #14648: Compute correctly maxchar in str.format() for substrin 14 years ago
Victor Stinner c9590ad745 Close #14085: remove assertions from PyUnicode_WRITE macro 14 years ago
Victor Stinner 41a863cb81 Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator 14 years ago
Victor Stinner ed27785b32 Issue #13706: Add assertions to detect bugs earlier 14 years ago
Antoine Pitrou 1334884ff2 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name. 14 years ago
Benjamin Peterson ce79852077 use the static identifier api for looking up special methods 14 years ago
Benjamin Peterson d5890c8db5 add str.casefold() (closes #13752) 14 years ago
Amaury Forgeot d'Arc 77b1ecf0ad Silence compilation warnings on Windows 14 years ago
Benjamin Peterson b2bf01d824 use full unicode mappings for upper/lower/title case (#12736) 14 years ago
Victor Stinner 3fe553160c Add a new PyUnicode_Fill() function 14 years ago
Victor Stinner 80bc72d5a2 fix PyCompactUnicodeObject doc (test) 14 years ago
Victor Stinner 52e2cc8604 backout 7876cd49300d: Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum 14 years ago
Victor Stinner 0ba5af20c0 Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum 14 years ago
Victor Stinner 1b57967b96 Issue #13560: Locale codec functions use the classic "errors" parameter, 14 years ago
Victor Stinner f2ea71fcc8 Issue #13560: Add PyUnicode_EncodeLocale() 14 years ago
Victor Stinner af02e1c85a Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() 14 years ago
Victor Stinner 16e6a80923 PyUnicode_Resize(): warn about canonical representation 14 years ago
Victor Stinner b0a82a6a7f Fix PyUnicode_Resize() for compact string: leave the string unchanged on error 14 years ago
Victor Stinner bf6e560d0c Make PyUnicode_Copy() private => _PyUnicode_Copy() 14 years ago
Victor Stinner 7a9105a380 resize_copy() now supports legacy ready strings 14 years ago
Victor Stinner 24c74be9a3 PyUnicode_IS_ASCII() macro ensures that the string is ready 14 years ago
Victor Stinner 551ac95733 Py_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros 14 years ago
Victor Stinner f3ae6208c7 PyUnicode_GET_SIZE() checks that PyUnicode_AsUnicode() succeed 14 years ago
Victor Stinner 77faf69ca1 _PyUnicode_CheckConsistency() also checks maxchar maximum value, 14 years ago
Victor Stinner 9343999597 Fix PyUnicode_CopyCharacters() doc 14 years ago
Victor Stinner 7c8bbbbb0c Ensure that Py_UCS4 is 32 bits and Py_UCS2 is 16 bits 14 years ago
Victor Stinner 6f9568bb1f Fix misused of "PyUnicodeObject" structure name in unicodeobject.h 14 years ago
Martin v. Löwis 1db7c13be1 Port encoders from Py_UNICODE API to unicode object API. 14 years ago
Martin v. Löwis d10759f6ed Make _PyUnicode_FromId return borrowed references. 14 years ago
Victor Stinner e30c0a1014 Fix gdb/libpython.py for not ready Unicode strings 14 years ago
Victor Stinner 7931d9a951 Replace PyUnicodeObject type by PyObject 14 years ago
Martin v. Löwis 23e275b3ad Port UCS1 and charmap codecs to new API. 14 years ago
Martin v. Löwis 0d3072e98d Drop Py_UCS4_ functions. Closes #13246. 14 years ago
Victor Stinner 9db1a8b69f Replace PyUnicodeObject* by PyObject* where it was irrevelant 14 years ago
Victor Stinner 55c7e00fc0 Simplify _PyUnicode_COMPACT_DATA() macro 14 years ago
Victor Stinner 3a50e7056e Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore 14 years ago
Martin v. Löwis bd928fef42 Rename _Py_identifier to _Py_IDENTIFIER. 14 years ago
Victor Stinner 8813104e53 Simplify PyUnicode_MAX_CHAR_VALUE 14 years ago
Martin v. Löwis 87da872c69 Drop extra semicolon. 14 years ago
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers. 14 years ago
Martin v. Löwis c47adb04b3 Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. 14 years ago
Georg Brandl db6c7f5c33 Update C API docs for PEP 393. 15 years ago
Victor Stinner b066cc6aba Fix PyUnicode_CHARACTER_SIZE and PyUnicode_KIND_SIZE 15 years ago
Antoine Pitrou dbf697ae5c Fix compilation warnings under 64-bit Windows 15 years ago
Victor Stinner 1d4b35f4e5 rephrase PyUnicode_1BYTE_KIND documentation 15 years ago
Victor Stinner fb9ea8c57e Don't check for the maximum character when copying from unicodeobject.c 15 years ago
Éric Araujo 80a348c0a0 Fix typo 15 years ago