diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-02-16 09:34:09 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-02-16 09:57:49 -0700 |
commit | bc75372eb06a2f24a68b49a2bd73d6209dd2690f (patch) | |
tree | 5ee7d4cbcb6a81b82ea4fa95813af97a6244943e | |
parent | d2d1e842481ab1c01af05dfa5ef041c4a41c9bce (diff) | |
download | perl-bc75372eb06a2f24a68b49a2bd73d6209dd2690f.tar.gz |
Unicode::UCD: Add examples to pod
-rw-r--r-- | lib/Unicode/UCD.pm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/Unicode/UCD.pm b/lib/Unicode/UCD.pm index 2ec57ad4be..a99f356811 100644 --- a/lib/Unicode/UCD.pm +++ b/lib/Unicode/UCD.pm @@ -5,7 +5,7 @@ use warnings; no warnings 'surrogate'; # surrogates can be inputs to this use charnames (); -our $VERSION = '0.49'; +our $VERSION = '0.50'; require Exporter; @@ -104,8 +104,16 @@ a decimal or a hexadecimal scalar designating a Unicode code point, or C<U+> followed by hexadecimals designating a Unicode code point. In other words, if you want a code point to be interpreted as a hexadecimal number, you must prefix it with either C<0x> or C<U+>, because a string like e.g. C<123> will be -interpreted as a decimal code point. Note that the largest code point in -Unicode is U+10FFFF. +interpreted as a decimal code point. + +Examples: + + 223 # Decimal 223 + 0223 # Hexadecimal 223 (= 547 decimal) + 0xDF # Hexadecimal DF (= 223 decimal + U+DF # Hexadecimal DF + +Note that the largest code point in Unicode is U+10FFFF. =cut |