summaryrefslogtreecommitdiffstats
path: root/Modules/sre_lib.h
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)Victor Stinner2020-12-011-2/+2
| | | | | | | | | No longer use deprecated aliases to functions: * Replace PyObject_MALLOC() with PyObject_Malloc() * Replace PyObject_REALLOC() with PyObject_Realloc() * Replace PyObject_FREE() with PyObject_Free() * Replace PyObject_Del() with PyObject_Free() * Replace PyObject_DEL() with PyObject_Free()
* bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781)Victor Stinner2020-06-101-17/+12
| | | | | | | The PEP 353, written in 2005, introduced PY_FORMAT_SIZE_T. Python no longer supports macOS 10.4 and Visual Studio 2010, but requires more recent macOS and Visual Studio versions. In 2020 with Python 3.10, it is now safe to use directly "%zu" to format size_t and "%zi" to format Py_ssize_t.
* bpo-39943: Fix MSVC warnings in sre extension (GH-20508)Ammar Askar2020-06-011-1/+4
|
* bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode ↵Serhiy Storchaka2020-04-111-14/+14
| | | | data. (GH-19345)
* bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)animalize2019-02-181-0/+8
| | | | | | Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst.
* bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. ↵Serhiy Storchaka2017-12-041-17/+30
| | | | | | (#4471) Also fixed searching patterns that could match an empty string.
* bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵Serhiy Storchaka2017-10-241-23/+113
| | | | flags for RE. (#3885)
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-051-2/+67
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* replace Py_(u)intptr_t with the c99 standard typesBenjamin Peterson2016-09-061-1/+1
|
* Reuse Py_STRINGIFY() macro in sre_lib.h and dynload_win.c.Serhiy Storchaka2015-11-051-4/+2
|
* Issue #18684: Fixed reading out of the buffer in the re module.Serhiy Storchaka2015-07-061-9/+20
|\
| * Issue #18684: Fixed reading out of the buffer in the re module.Serhiy Storchaka2015-07-061-9/+20
| |\
| | * Issue #18684: Fixed reading out of the buffer in the re module.Serhiy Storchaka2015-07-061-9/+20
| | |
* | | Issue #24426: Fast searching optimization in regular expressions now worksSerhiy Storchaka2015-06-211-26/+27
|/ / | | | | | | | | for patterns that starts with capturing groups. Fast searching optimization now can't be disabled at compile time.
* | Issue #17381: Fixed handling of case-insensitive ranges in regular expressions.Serhiy Storchaka2014-10-311-6/+22
|/ | | | Added new opcode RANGE_IGNORE.
* Issue #20998: Fixed re.fullmatch() of repeated single character patternSerhiy Storchaka2014-05-141-10/+10
| | | | with ignore case. Original patch by Matthew Barnett.
* Issue #16203: Add re.fullmatch() function and regex.fullmatch() method,Serhiy Storchaka2013-11-231-7/+21
| | | | | | which anchor the pattern at both ends of the string to match. Original patch by Matthew Barnett.
* Issue #18685: Extract template part of _sre.c into separated sre_lib.h file.Serhiy Storchaka2013-10-261-0/+1329