summaryrefslogtreecommitdiff
path: root/lib/charnames.pm
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-03-19 23:14:28 -0600
committerKarl Williamson <public@khwilliamson.com>2012-03-19 23:34:24 -0600
commitffec675822f6354e94f29a96daa07ef9465a43bc (patch)
tree2810dad9e73130b0acf1140f90dd7efa3d54a4d8 /lib/charnames.pm
parent228e8c7b6cef1e12cb12f45083fdcae7b35fba27 (diff)
downloadperl-ffec675822f6354e94f29a96daa07ef9465a43bc.tar.gz
charnames pod: slight rewording
Diffstat (limited to 'lib/charnames.pm')
-rw-r--r--lib/charnames.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/charnames.pm b/lib/charnames.pm
index e2237b8765..2d02944cf1 100644
--- a/lib/charnames.pm
+++ b/lib/charnames.pm
@@ -370,9 +370,9 @@ For example,
prints "FOUR TEARDROP-SPOKED ASTERISK".
The name returned is the official name for the code point, if
-available; otherwise your custom alias for it. This means that your
-alias will only be returned for code points that don't have an official
-Unicode name (nor alias) such as private use code points.
+available; otherwise your custom alias for it, if defined; otherwise C<undef>.
+This means that your alias will only be returned for code points that don't
+have an official Unicode name (nor alias) such as private use code points.
Until Unicode 6.1, the 4 control characters U+0080, U+0081, U+0084, and U+0099
did not have names (actually, to be precise they still don't, but they do have
aliases, which for most purposes are indistiunguishable from true names).
@@ -382,8 +382,8 @@ points will be returned by this function, in preference to the official alias.
If you define more than one name for the code point, it is indeterminate
which one will be returned.
-The function returns C<undef> if no name is known for the code point.
-In Unicode the proper name of these is the empty string, which
+As mentioned, the function returns C<undef> if no name is known for the code
+point. In Unicode the proper name of these is the empty string, which
C<undef> stringifies to. (If you ask for a code point past the legal
Unicode maximum of U+10FFFF that you haven't assigned an alias to, you
get C<undef> plus a warning.)