summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-12-23 20:19:27 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-19 11:58:19 -0700
commitfa01018c102d8360898153b9f4b062716ad06702 (patch)
tree4cd4070d320abb9936fe0d2a08a732c597637def /regexec.c
parentbb9144850c8033592c0187ea712691a97703385e (diff)
downloadperl-fa01018c102d8360898153b9f4b062716ad06702.tar.gz
regex: Remove FOLDCHAR regnode type
This node type hasn't been used since 5.14.0. Instead an ANYOFV node was generated where formerly a FOLDCHAR node would have been used. The ANYOFV was used because it already existed and was up-to-date, whereas FOLDCHAR would have needed some bug fixes to adapt it, even though it would be faster in execution than ANYOFV; so the code for it was retained in case it was needed. However, both these solutions were defective, and a previous commit has changed things to a different type of solution entirely. Thus FOLDCHAR is obsolescent and can be removed, though the code in it was used as a base for some of the new solutions.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/regexec.c b/regexec.c
index 54cc0174b1..6bd8b20b60 100644
--- a/regexec.c
+++ b/regexec.c
@@ -5710,27 +5710,6 @@ NULL
sayNO;
/* NOTREACHED */
#undef ST
- case FOLDCHAR:
- n = ARG(scan);
- if ( n == (U32)what_len_TRICKYFOLD(locinput,utf8_target,ln) ) {
- locinput += ln;
- } else if ( LATIN_SMALL_LETTER_SHARP_S == n && !utf8_target && !UTF_PATTERN ) {
- sayNO;
- } else {
- U8 folded[UTF8_MAXBYTES_CASE+1];
- STRLEN foldlen;
- const char * const l = locinput;
- char *e = PL_regeol;
- to_uni_fold(n, folded, &foldlen);
-
- if (! foldEQ_utf8((const char*) folded, 0, foldlen, 1,
- l, &e, 0, utf8_target)) {
- sayNO;
- }
- locinput = e;
- }
- nextchr = UCHARAT(locinput);
- break;
case LNBREAK:
if ((n=is_LNBREAK(locinput,utf8_target))) {
locinput += n;