This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlglossary: Add defn for "code point"
authorKarl Williamson <public@khwilliamson.com>
Mon, 9 Aug 2010 17:33:09 +0000 (11:33 -0600)
committerRafael Garcia-Suarez <rgs@consttype.org>
Wed, 11 Aug 2010 08:12:24 +0000 (10:12 +0200)
pod/perlglossary.pod

index 9f0f646..268792f 100644 (file)
@@ -545,6 +545,17 @@ A system that writes code for you in a low-level language, such as
 code to implement the backend of a compiler.  See L</program
 generator>.
 
+=item code point
+
+The position of a character in a character set encoding.  The character
+C<NULL> is almost certainly at the zeroth position in all character
+sets, so it's code point is 0.  The code point for the C<SPACE>
+character in the ASCII character set is 0x20, or 32 decimal; in EBCDIC
+it is 0x40, or 64 decimal.  The L<ord|perlfunc/ord> function returns
+the code point of a character.
+
+"code position" and "ordinal" mean the same thing as "code point".
+
 =item code subpattern
 
 A L</regular expression> subpattern whose real purpose is to execute
@@ -2114,6 +2125,10 @@ L</pragma>.
 
 See either L<switches|/switch> or L</regular expression modifier>.
 
+=item ordinal
+
+Another name for L</code point>
+
 =item overloading
 
 Giving additional meanings to a symbol or construct.  Actually, all