177 Commits (0d3072e98d9be9cfcdccefd60dbaca2c19e8d889)

Author SHA1 Message Date
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. 15 years ago
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers. 15 years ago
Martin v. Löwis c47adb04b3 Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. 15 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
Victor Stinner 30134f53fc Complete documentation of compact ASCII strings 15 years ago
Victor Stinner a41463c203 Document utf8_length and wstr_length states 15 years ago
Victor Stinner 7f11ad4594 Unicode: document when the wstr pointer is shared with data 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 4d0d54bcba Document requierements of Unicode kinds 15 years ago
Georg Brandl 07de325672 More fixes. 15 years ago
Georg Brandl c6bc4c6897 Fix a few typos in the unicode header. 15 years ago
Georg Brandl 4975a9b44d Fix grammar. 15 years ago
Victor Stinner b9275c104e Speedup str[a:b] and PyUnicode_FromKindAndData 15 years ago
Victor Stinner 85041a54bd _PyUnicode_CheckConsistency() checks utf8 field consistency 15 years ago
Victor Stinner a3b334da6d PyUnicode_Ready() now sets ascii=1 if maxchar < 128 15 years ago
Victor Stinner 910337b42e Add _PyUnicode_CheckConsistency() macro to help debugging 15 years ago
Victor Stinner 37943769ef PyUnicode_READ_CHAR() ensures that the string is ready 15 years ago
Victor Stinner 7a48ff7e06 Use Py_UCS1 instead of unsigned char in unicodeobject.h 15 years ago
Victor Stinner cd9950fd09 PyUnicode_WriteChar() raises IndexError on invalid index 15 years ago
Victor Stinner 9f789e7f63 _PyUnicode_AsKind() is *not* part of the stable ABI 15 years ago
Victor Stinner 4584a5ba1a PyUnicode_CHARACTER_SIZE(): add a reference to PyUnicode_KIND_SIZE() 15 years ago
Victor Stinner 034f6cf10c Add PyUnicode_Copy() function, include it to the public API 15 years ago
Victor Stinner d8f6510acc _PyUnicode_Ready() cannot be used on ready strings anymore 15 years ago
Victor Stinner bc8b81bc4e Move _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() outside unicodeobject.h 15 years ago
Victor Stinner a0702ab1fe Add a note in PyUnicode_CopyCharacters() doc: it doesn't write null character 15 years ago
Victor Stinner f5ca1a21a5 PyUnicode_CopyCharacters() fails if 'to' has more than 1 reference 15 years ago
Victor Stinner 17222160e7 Mark _PyUnicode_FindMaxCharAndNumSurrogatePairs() as private 15 years ago
Victor Stinner 157f83fcfc Strip trailing spaces in unicodeobject.[ch] 15 years ago
Victor Stinner be78eaf2de PyUnicode_CopyCharacters() checks for buffer and character overflow 15 years ago
Victor Stinner fb5f5f2420 Mark PyUnicode_CONVERT_BYTES as private 15 years ago
Victor Stinner 5ce1b0dbc0 Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE 15 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 15 years ago
Victor Stinner d88d9836c5 Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character 15 years ago
Ezio Melotti 8c9375bb59 #10542: Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES. 15 years ago
Victor Stinner 99b9538636 Issue #9642: Uniformize the tests on the availability of the mbcs codec 15 years ago
Victor Stinner f3fd733f92 Remove useless argument of _PyUnicode_AsDefaultEncodedString() 15 years ago
Victor Stinner 0d711169fa Issue #9738: Ooops, fix typos in my previous commit (r87506) 15 years ago
Victor Stinner dc2081f72b Issue #9738: document encodings of unicode functions 15 years ago