This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Avoid unnecessary runtime fold checking
authorKarl Williamson <public@khwilliamson.com>
Fri, 6 Jan 2012 20:27:17 +0000 (13:27 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:39 +0000 (09:58 -0700)
commitd9105c956266099fce1d9a12501a44113182711e
tree41b48b20d56071c493010339cfa0a9b7c4f0fad7
parenta9746a27a5180d49f9208789465ec399c6dd804c
regcomp.c: Avoid unnecessary runtime fold checking

Since 5.14, the single-char folds have been calculated at compile time,
either by doing it there, or for properties, setting the swash name to
include a foleded or non-folded version of the property.  Thus this
patch could have been done much earlier.

Now, most of the properties are actually computed at compile time by
previous patches, but that isn't relevant to this one.

Thus there really doesn't need to be runtime folding for things that
aren't in the bitmap, except for those things under /d that match only
if the string is in UTF8.
regcomp.c