File Coverage

lib/PostScript/ISOLatin1Encoding.pm
Criterion Covered Total %
statement 9 11 81.8
branch 2 4 50.0
condition n/a
subroutine 3 4 75.0
pod 2 2 100.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             # RCS Status : $Id: ISOLatin1Encoding.pm,v 1.2 2000-11-15 14:50:14+01 jv Exp $
2             # Author : Johan Vromans
3             # Created On : Sun Jun 18 10:47:10 2000
4             # Last Modified By: Johan Vromans
5             # Last Modified On: Wed Nov 15 14:48:53 2000
6             # Update Count : 16
7             # Status : Released
8              
9             ################ Module Preamble ################
10              
11             package PostScript::ISOLatin1Encoding;
12              
13             $VERSION = "1.01";
14              
15 1     1   15 use 5.005;
  1         3  
  1         30  
16 1     1   3 use strict;
  1         1  
  1         170  
17              
18             # Adobe ISOLatin1Encoding.
19             my $ISOLatin1Encoding_str =
20             ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ".
21             ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ".
22             ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ".
23             ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ".
24             "space exclam quotedbl numbersign dollar percent ampersand quoteright ".
25             "parenleft parenright asterisk plus comma minus period slash zero one ".
26             "two three four five six seven eight nine colon semicolon less equal ".
27             "greater question at A B C D E F G H I J K L M N O P Q R S T U V W X ".
28             "Y Z bracketleft backslash bracketright asciicircum underscore ".
29             "quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z ".
30             "braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef ".
31             ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ".
32             ".notdef .notdef .notdef .notdef .notdef dotlessi grave acute ".
33             "circumflex tilde macron breve dotaccent dieresis .notdef ring ".
34             "cedilla .notdef hungarumlaut ogonek caron space exclamdown cent ".
35             "sterling currency yen brokenbar section dieresis copyright ".
36             "ordfeminine guillemotleft logicalnot hyphen registered macron degree ".
37             "plusminus twosuperior threesuperior acute mu paragraph ".
38             "periodcentered cedilla onesuperior ordmasculine guillemotright ".
39             "onequarter onehalf threequarters questiondown Agrave Aacute ".
40             "Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute ".
41             "Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde ".
42             "Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave ".
43             "Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute ".
44             "acircumflex atilde adieresis aring ae ccedilla egrave eacute ".
45             "ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ".
46             "ograve oacute ocircumflex otilde odieresis divide oslash ugrave ".
47             "uacute ucircumflex udieresis yacute thorn ydieresis";
48              
49             my @ISOLatin1Encoding;
50              
51             sub string {
52 0     0 1 0 my ($self) = @_;
53 0         0 $ISOLatin1Encoding_str;
54             }
55              
56             sub array {
57 1     1 1 2 my ($self) = @_;
58 1 50       74 @ISOLatin1Encoding = split(' ', $ISOLatin1Encoding_str)
59             unless @ISOLatin1Encoding;
60 1 50       21 wantarray ? @ISOLatin1Encoding : \@ISOLatin1Encoding;
61             }
62              
63             1;
64              
65             __END__