This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
parts/inc/utf8: Fix hints for is_ascii_string
authorKarl Williamson <khw@cpan.org>
Sat, 20 Jul 2019 20:19:48 +0000 (14:19 -0600)
committerNicolas R <atoomic@cpan.org>
Fri, 27 Sep 2019 22:51:28 +0000 (16:51 -0600)
This hint was the wrong thing.  We really want it to come out for the
API functions we want to caution about.

(cherry picked from commit 4931fb4d1f76616701bcb786949827409cde1e09)
Signed-off-by: Nicolas R <atoomic@cpan.org>
dist/Devel-PPPort/parts/inc/utf8

index 54d34f5..9014e95 100644 (file)
@@ -43,9 +43,9 @@ __UNDEFINED__  UTF8_SAFE_SKIP(s, e)  (
 __UNDEFINED__ is_invariant_string(s,l) is_ascii_string(s,l)
 __UNDEFINED__ is_utf8_invariant_string(s,l) is_ascii_string(s,l)
 
-/* Hint: is_utf8_invariant_string
-   Please use this instead of is_ascii_string or is_invariant_string
-*/
+/* Hint: is_ascii_string, is_invariant_string
+   is_utf8_invariant_string() does the same thing and is preferred because its
+   name is more accurate as to what it does */
 #endif
 
 #ifdef ibcmp_utf8