summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-06-18 14:08:32 -0600
committerKarl Williamson <public@khwilliamson.com>2013-06-18 14:10:45 -0600
commitd98532ea8ab5685c2884f540fd890ca6efb50d94 (patch)
tree5429e7a7905158d8acee29dcac5d6306521161f5 /handy.h
parentde36fb2e712ebd31d1934fd523ca0cdeaa394b78 (diff)
downloadperl-d98532ea8ab5685c2884f540fd890ca6efb50d94.tar.gz
perlapi: Add note to isASCII
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 195cc538d9..a763824ede 100644
--- a/handy.h
+++ b/handy.h
@@ -551,6 +551,12 @@ C<isASCII_LC_utf8>. Note, however, that some platforms do not have the C
library routine C<isascii()>. In these cases, the variants whose names contain
C<LC> are the same as the corresponding ones without.
+Also note, that because all ASCII characters are UTF-8 invariant (meaning they
+have the exact same representation (always a single byte) whether encoded in
+UTF-8 or not), C<isASCII> will give the correct results when called with any
+byte in any string encoded or not in UTF-8. And similarly C<isASCII_utf8> will
+work properly on any string encoded or not in UTF-8.
+
=for apidoc Am|bool|isBLANK|char ch
Returns a boolean indicating whether the specified character is a
character considered to be a blank, analogous to C<m/[[:blank:]]/>.