summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Closes #21279: Merge with 3.5Zachary Ware2015-08-061-5/+6
|\
| * Issue #21279: Merge with 3.4Zachary Ware2015-08-061-5/+6
| |\
| | * Issue #21279: Flesh out str.translate docsZachary Ware2015-08-061-5/+6
| | | | | | | | | | | | Initial patch by Kinga Farkas, Martin Panter, and John Posner.
* | | Make the unicode equality test an external function rather than in-lining it.Raymond Hettinger2015-07-041-0/+7
|/ / | | | | | | | | | | | | | | The real benefit of the unicode specialized function comes from bypassing the overhead of PyObject_RichCompareBool() and not from being in-lined (especially since there was almost no shared data between the caller and callee). Also, the in-lining was having a negative effect on code generation for the callee.
* | Issue #24284: The startswith and endswith methods of the str class no longerSerhiy Storchaka2015-05-311-3/+3
| | | | | | | | | | return True when finding the empty string and the indexes are completely out of range.
* | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).Antoine Pitrou2015-05-191-3/+3
|\ \ | |/
| * Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).Antoine Pitrou2015-05-191-17/+17
| |
* | Issue #15027: The UTF-32 encoder is now 3x to 7x faster.Serhiy Storchaka2015-05-121-61/+41
| |
* | Issue #23908: os functions now reject paths with embedded null characterSerhiy Storchaka2015-04-201-15/+0
|\ \ | |/ | | | | | | | | on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars().
| * Issue #23803: Fixed str.partition() and str.rpartition() when a separatorSerhiy Storchaka2015-03-291-5/+5
| | | | | | | | is wider then partitioned string.
| * merge 3.3 (#23362)Benjamin Peterson2015-03-021-1/+1
| |\
| | * use PyMem_NEW to detect overflow (closes #23362)Benjamin Peterson2015-03-021-1/+1
| | |
| | * Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka2015-01-271-0/+2
| | | | | | | | | | | | and fix by Guido Vranken.
* | | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-39/+3
| | |
* | | _PyUnicodeWriter_WriteStr() now checks that the input string is consistentVictor Stinner2015-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | in debug mode to detect bugs earlier. _PyUnicodeWriter_Finish() doesn't check if the read only string is consistent, whereas it does check consistency for strings built by itself.
* | | Issue #23573: Increased performance of string search operations (str.find,Serhiy Storchaka2015-03-241-152/+192
| | | | | | | | | | | | | | | str.index, str.count, the in operator, str.split, str.partition) with arguments of different kinds (UCS1, UCS2, UCS4).
* | | Fix compiler warnings: comparison between signed and unsigned numbersVictor Stinner2015-03-201-1/+1
| | |
* | | Initialize variables to prevent GCC warningsVictor Stinner2015-03-181-15/+20
| | |
* | | Issue #23451: Update pyconfig.h for Windows to require Vista headers and ↵Steve Dower2015-03-021-18/+1
| | | | | | | | | | | | remove unnecessary version checks.
* | | Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
|\ \ \ | |/ / | | | | | | old-style and new API for string with 2**30-1 characters.
| * | Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
| | | | | | | | | | | | old-style and new API for string with 2**30-1 characters.
* | | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
|\ \ \ | |/ / | | | | | | overflows. Added few missed PyErr_NoMemory().
| * | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
| | | | | | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() andVictor Stinner2015-01-261-4/+5
| | | | | | | | | | | | | | | | | | PyUnicode_EncodeCodePage() now raise an exception if the object is not an Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on platforms other than Windows. Patch written by Campbell Barton.
* | | Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
|\ \ \ | |/ / | | | | | | replacment string longer than mailformed input data.
| * | Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
| | | | | | | | | | | | replacment string longer than mailformed input data.
* | | Issue20284: Implement PEP461Ethan Furman2015-01-241-7/+5
| | |
* | | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-2/+2
|\ \ \ | |/ /
| * | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-2/+2
| | |
* | | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-2/+1
|\ \ \ | |/ /
| * | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-2/+1
| | |
* | | Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
|\ \ \ | |/ /
| * | Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
| | |
| * | Merge 3.3Benjamin Peterson2014-10-161-1/+1
| |\ \ | | |/
| | * Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | Issue #20948: Inline makefmt() in unicode_fromformat_arg()Victor Stinner2014-11-181-44/+9
| | |
* | | Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | merge 3.4 (closes #22643)Benjamin Peterson2014-10-151-3/+2
|\ \ \ | |/ /
| * | merge 3.3Benjamin Peterson2014-10-151-3/+2
| |\ \ | | |/
| | * it suffices to check for PY_SSIZE_T_MAX overflow (#22643)Benjamin Peterson2014-10-151-3/+2
| | |
* | | Merge 3.4Benjamin Peterson2014-10-151-1/+1
|\ \ \ | |/ /
| * | Merge 3.3Benjamin Peterson2014-10-151-1/+1
| |\ \ | | |/
| | * make sure length is unsignedBenjamin Peterson2014-10-151-1/+1
| | |
* | | merge 3.4 (#22643)Benjamin Peterson2014-10-151-0/+5
|\ \ \ | |/ /
| * | merge 3.3 (#22643)Benjamin Peterson2014-10-151-0/+5
| |\ \ | | |/
| | * fix integer overflow in unicode case operations (closes #22643)Benjamin Peterson2014-10-151-0/+5
| | |
* | | Fix "warning: comparison between signed and unsigned integer expressions"Gregory P. Smith2014-09-301-5/+5
| | | | | | | | | | | | | | | | | | -Wsign-compare warnings in unicodeobject.c. These were all a result of sizeof() being unsigned and being compared to a Py_ssize_t. Not actual problems.
* | | merge 3.4 (#22520)Benjamin Peterson2014-09-301-11/+17
|\ \ \ | |/ /
| * | merge 3.3 (#22520)Benjamin Peterson2014-09-301-11/+17
| |\ \ | | |/
| | * prevent overflow in unicode_repr (closes #22520)Benjamin Peterson2014-09-301-11/+17
| | |