From 03bb5c85a720f4455caceb352295004706a3a9c1 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 20 Oct 2012 16:22:05 -0600 Subject: [PATCH] perlapi.pod: Clarify what a parameter means --- utf8.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utf8.c b/utf8.c index 8ad0478..8dd60c9 100644 --- a/utf8.c +++ b/utf8.c @@ -4294,9 +4294,11 @@ scanning won't continue past that goal. Correspondingly for C with respect C. If C is non-NULL and the pointer it points to is not NULL, that pointer is -considered an end pointer beyond which scanning of C will not continue under -any circumstances. This means that if both C and C are specified, and -C +considered an end pointer to the position 1 byte past the maximum point +in C beyond which scanning will not continue under any circumstances. +(This routine assumes that UTF-8 encoded input strings are not malformed; +malformed input can cause it to read past C). +This means that if both C and C are specified, and C is less than C+C, the match will never be successful because it can never get as far as its goal (and in fact is asserted against). Correspondingly for -- 2.7.4