blib/lib/XML/Hash/XS.pm

filter: Statementstmt 100% 49 / 49 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 55 / 55 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« src/xh_perl_buffer.c ↑ Summary src/xh_buffer.h »
1 package XML::Hash::XS;
2  
3 23 ▶use 5.008008;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 23 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 23 ▶use vars qw($VERSION @EXPORT @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 23 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 23 @EXPORT = qw( hash2xml xml2hash );
9 23 @EXPORT_OK = (@EXPORT, qw(
10 XML_HASH_XS_CONTINUE XML_HASH_XS_STOP XML_HASH_XS_SKIP
11 ));
12  
13 sub XML_HASH_XS_CONTINUE () { 'XML_HASH_XS_CONTINUE' }
14 sub XML_HASH_XS_STOP () { 'XML_HASH_XS_STOP' }
15 sub XML_HASH_XS_SKIP () { 'XML_HASH_XS_SKIP' }
16  
17 23 $VERSION = '0.66';
18  
19 23 require XSLoader;
20 23 XSLoader::load('XML::Hash::XS', $VERSION);
21  
22 23 ▶use vars qw($method $output $output_cb $root $version $encoding $utf8 $indent $canonical
Subroutine BEGIN: called CC=1 SCAR=0.0
23 $use_attr $content $xml_decl $doc $max_depth $attr $text $trim $cdata
24 $comm $buf_size $keep_root $force_array $force_content $merge_text
25 $suppress_empty $cb_mode
26 23 );
27  
28 # 'NATIVE' or 'LX'
29 23 $method = 'NATIVE';
30  
31 # native options
32 23 $output = undef;
33 23 $output_cb = undef;
34 23 $root = 'root';
35 23 $version = '1.0';
36 23 $encoding = '';
37 23 $utf8 = 1;
38 23 $indent = 0;
39 23 $canonical = 0;
40 23 $use_attr = 0;
41 23 $content = undef;
42 23 $xml_decl = 1;
43 23 $keep_root = 1;
44 23 $doc = 0;
45 23 $max_depth = 1024;
46 23 $buf_size = 4096;
47 23 $trim = 0;
48 23 $force_array = undef;
49 23 $force_content = 0;
50 23 $merge_text = 0;
51 23 $suppress_empty = 0;
52 23 $cb_mode = 'node';
53  
54 # XML::Hash::LX options
55 23 $attr = '-';
56 23 $text = '#text';
57 23 $cdata = undef;
58 23 $comm = undef;
59  
60 23 1;
61 __END__
« src/xh_perl_buffer.c ↑ Summary src/xh_buffer.h »