diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-10-16 11:11:11 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-10-16 21:48:37 -0600 |
commit | 2db97d4168d61ce2b1f393bd6bba984467bb4bf9 (patch) | |
tree | a915b04b4dc402ae6173c2946cc751e490554de8 | |
parent | 49b95fadfe8c5c974cc7538ea3f53702cdf705ff (diff) | |
download | perl-2db97d4168d61ce2b1f393bd6bba984467bb4bf9.tar.gz |
regcomp.c, regexec.c: Comments only; no code changes
-rw-r--r-- | regcomp.c | 9 | ||||
-rw-r--r-- | regexec.c | 2 |
2 files changed, 6 insertions, 5 deletions
@@ -2866,7 +2866,7 @@ S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, UV *min_subtract, b /* Here, the pattern is not UTF-8. Look for the multi-char folds * that are all ASCII. As in the above case, EXACTFL and EXACTFA * nodes can't have multi-char folds to this range (and there are - * no existing ones to the upper latin1 range). In the EXACTF + * no existing ones in the upper latin1 range). In the EXACTF * case we look also for the sharp s, which can be in the final * position. Otherwise we can stop looking 1 byte earlier because * have to find at least two characters for a multi-fold */ @@ -12762,9 +12762,10 @@ parseit: /* Single character fold of above Latin1. Add everything in * its fold closure to the list that this node should match. * The fold closures data structure is a hash with the keys - * being every character that is folded to, like 'k', and the - * values each an array of everything that folds to its key. - * e.g. [ 'k', 'K', KELVIN_SIGN ] */ + * being the UTF-8 of every character that is folded to, like + * 'k', and the values each an array of all code points that + * fold to its key. e.g. [ 'k', 'K', KELVIN_SIGN ]. + * Multi-character folds are not included */ if ((listp = hv_fetch(PL_utf8_foldclosures, (char *) foldbuf, foldlen, FALSE))) { @@ -4648,7 +4648,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog) /* This call case insensitively compares the entire buffer * at s, with the current input starting at locinput, but * not going off the end given by PL_regeol, and returns in - * limit upon success, how much of the current input was + * <limit> upon success, how much of the current input was * matched */ if (! foldEQ_utf8_flags(s, NULL, rex->offs[n].end - ln, utf8_target, locinput, &limit, 0, utf8_target, utf8_fold_flags)) |