diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-10-31 11:20:43 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-31 15:58:41 -0700 |
commit | af364d036721fad8cdfe034fea03192968f09774 (patch) | |
tree | 81eb0d87ebd8840c0d49fda444b57159901d9025 /regexec.c | |
parent | f6ad78d8b847361e046c98c7811db99387508807 (diff) | |
download | perl-af364d036721fad8cdfe034fea03192968f09774.tar.gz |
regexec.c: Add clarifying comment
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -94,7 +94,11 @@ #define STATIC static #endif -#define REGINCLASS(prog,p,c) (ANYOF_FLAGS(p) ? reginclass(prog,p,c,0,0) : ANYOF_BITMAP_TEST(p,*(c))) +/* Valid for non-utf8 strings only: avoids the reginclass call if there are no + * complications: i.e., if everything matchable is straight forward in the + * bitmap */ +#define REGINCLASS(prog,p,c) (ANYOF_FLAGS(p) ? reginclass(prog,p,c,0,0) \ + : ANYOF_BITMAP_TEST(p,*(c))) /* * Forwards. |