This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
is_utf8_char_slow(): Make constistent, correct docs.
authorKarl Williamson <public@khwilliamson.com>
Mon, 13 Feb 2012 20:13:02 +0000 (13:13 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 13 Feb 2012 20:42:54 +0000 (13:42 -0700)
commitf7d739d1511e40955f3a5ee22efc6a6e64af9bce
tree8329ce25277ed461ec8926ab1dd9903aef11f56d
parentd6495f5d84361750b54f6ff0916cc93c2a501a2d
is_utf8_char_slow(): Make constistent, correct docs.

This function is only used by the Perl core for very large code points,
though it is designed to be able to be used for all code points.

For any variant code points, it doesn't succeed unless the passed in
length is exactly the same as the number of bytes the code point
occupies.  The documentation says it succeeds if the length is at least
that number.  This commit updates the documentation to match the
behavior.

Also, for an invariant code point, it succeeds no matter what the
passed-in length says.  This commit changes this to be consistent with
the behavior for all other code points.
utf8.c