This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regex: Allow any single char to be SIMPLE
authorKarl Williamson <public@khwilliamson.com>
Sat, 6 Oct 2012 20:57:38 +0000 (14:57 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 9 Oct 2012 17:16:05 +0000 (11:16 -0600)
commitb40a2c17551b484a78122be98db5dc06bb4614d5
tree52a59ff7f0c32df215790cd516e29dd5ea2f2aaf
parent51e68360f9d9caf2a439cb6a3ca38dcf1ad0e35d
regex: Allow any single char to be SIMPLE

This commit relaxes the previous requirement that an EXACTish node must
contain a single Latin1-range character in order to be considered
SIMPLE.  Now it allows any single character, not just Latin1.

This allows above-Unicode characters to be in optimizations like STAR or
CURLY, instead of having to match with the more complex CURLYM; and it
brings EXACTish nodes in alignment with other SIMPLE nodes, such as
those matching \w or the dot metacharacter, which all along have
supported any code point being SIMPLE
regcomp.c
regexec.c