develooper Front page | perl.perl5.porters | Postings from December 2010

[perl #80426] Document usage of strlen() by is_utf8_string() and others

Thread Previous
From:
Marvin Humphrey
Date:
December 8, 2010 15:32
Subject:
[perl #80426] Document usage of strlen() by is_utf8_string() and others
Message ID:
rt-3.6.HEAD-17624-1291842635-1740.80426-75-0@perl.org
# New Ticket Created by  Marvin Humphrey 
# Please include the string:  [perl #80426]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=80426 >


If the 'len' parameter to is_utf8_string() is 0, strlen() will be invoked on
the supplied 's' parameter to calculate it.  The same is true for
is_ascii_string(), is_utf8_string_loc(), and is_utf8_string_loclen().  This
behavior has existed for years, but is not documented in perlapi.  

The supplied patch amends the documentation for is_utf8_string() and
is_ascii_string(); the other functions inherit their documentation from
is_utf8_string() and thus do not require changes.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About