summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-08 02:13:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-08 02:13:53 +0000
commit832705d49ab18eb2b35edbacb1510b214b5a22f5 (patch)
treecb77ede49f3bfd5f8091b38579c941bd3159ca7f /regexec.c
parent93deb89398a017c04e6e35182b4aa67d75f172d0 (diff)
downloadperl-832705d49ab18eb2b35edbacb1510b214b5a22f5.tar.gz
A little better comments.
p4raw-id: //depot/perl@14130
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 203c8e9687..4602b05f3a 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4176,7 +4176,13 @@ Perl_regclass_swash(pTHX_ register regnode* node, bool doinit, SV** listsvp, SV
}
/*
- - reginclass - determine if a character falls into a character class
+ - reginclasslen - determine if a character falls into a character class
+
+ The n is the ANYOF regnode, the p is the target string, lenp
+ is pointer to the maximum length of how far to go in the p
+ (if the lenp is zero, UTF8SKIP(p) is used),
+ do_utf8 tells whether the target string is in UTF-8.
+
*/
STATIC bool
@@ -4301,6 +4307,14 @@ S_reginclasslen(pTHX_ register regnode *n, register U8* p, STRLEN* lenp, registe
return (flags & ANYOF_INVERT) ? !match : match;
}
+/*
+ - reginclass - determine if a character falls into a character class
+
+ The n is the ANYOF regnode, the p is the target string, do_utf8 tells
+ whether the target string is in UTF-8.
+
+ */
+
STATIC bool
S_reginclass(pTHX_ register regnode *n, register U8* p, register bool do_utf8)
{