Branch Coverage

File:blib/lib/XML/Twig.pm
Coverage:85.4%

line%coveragebranch
11950TFunless $parser_version >= $needVersion
12150TFif ($] >= 5.008)
13050TFif (eval 'require Scalar::Util' and defined \&Scalar::Util::weaken) { }
0TFelsif (eval 'require WeakRef') { }
389100TFunless ($args{'MoreOptions'})
391100TFunless $valid_option{$arg}
403100TFif (exists $args{'TwigHandlers'})
410100TFif (exists $args{'StartTagHandlers'})
415100TFif (exists $args{'DoNotChainHandlers'})
418100TFif (exists $args{'IgnoreElts'})
42050TFif (isa($args{'IgnoreElts'}, 'ARRAY'))
425100TFif (exists $args{'Index'})
428100TFif (ref $index eq 'ARRAY')
437100TFif (exists $args{'EltClass'})
439100TFif (exists $args{'MapXmlns'})
445100TFif (exists $args{'KeepOriginalPrefix'})
453100TFif ($args{'ExpandExternalEnts'}) { }
457100TFif ($args{'ExpandExternalEnts'} == -1)
46750TFif (not $args{'NoLWP'} and not _use('URI') and not _use('URI::File') and not _use('LWP')) { }
472100TFif ($args{'DoNotEscapeAmpInAtts'}) { }
484100TFif ($args{'TwigRoots'})
489100TFif ($args{'EndTagHandlers'})
490100TFunless ($$self{'twig_roots'} or $args{'ForceEndTagHandlersUsage'})
503100TFif ($args{'TwigPrintOutsideRoots'})
504100TFunless $$self{'twig_roots'}
507100TFif (_is_fh($args{'TwigPrintOutsideRoots'}))
513100TFif ($args{'KeepSpaces'})
514100TFif $args{'DiscardSpaces'}
515100TFif $args{'KeepSpacesIn'}
519100TFif ($args{'DiscardSpaces'})
520100TFif $args{'KeepSpacesIn'}
524100TFif ($args{'KeepSpacesIn'})
525100TFif $args{'DiscardSpacesIn'}
532100TFif ($args{'DiscardSpacesIn'})
540100TFunless $$self{'twig_keep_spaces'}
543100TFif ($args{'Comments'} eq 'drop') { }
100TFelsif ($args{'Comments'} eq 'keep') { }
100TFelsif ($args{'Comments'} eq 'process') { }
550100TFif ($args{'Pi'} eq 'drop') { }
100TFelsif ($args{'Pi'} eq 'keep') { }
100TFelsif ($args{'Pi'} eq 'process') { }
556100TFif ($args{'KeepEncoding'}) { }
561100TFif defined $args{'ParseStartTag'}
566100TFif ($args{'ParseStartTag'}) { }
573100TFif ($args{'OutputFilter'}) { }
580100TFif ($args{'RemoveCdata'}) { }
587100TFif ($args{'OutputTextFilter'}) { }
595100TFif (exists $args{'KeepAttsOrder'}) { }
597100TFif (_use('Tie::IxHash')) { }
606100TFif ($args{'PrettyPrint'})
60750TFif ($args{'EscapeGt'})
608100TFif ($args{'Quote'})
609100TFif ($args{'EmptyTags'})
611100TFif (exists $args{'Id'})
612100TFif ($args{'NoProlog'})
613100TFif ($args{'DoNotOutputDTD'})
614100TFif ($args{'LoadDTD'})
615100TFif ($args{'CharHandler'})
617100TFif ($args{'InputFilter'})
618100TFif ($args{'NoExpand'})
619100TFif (my $output_encoding = $args{'OutputEncoding'})
621100TFif (my $tdh = $args{'TopDownHandlers'})
624100TFif ($$self{'twig_roots'}) { }
625100TFif ($$self{'twig_default_print'}) { }
626100TFif ($$self{'twig_keep_encoding'}) { }
651100TFif ($weakrefs)
660100TFif (not ref $t or not isa($t, 'XML::Twig'))
66550TFif ($] >= 5.008 and ${^UNICODE} and ${^UNICODE} & 24 and isa($_[0], 'GLOB') and -p $_[0])
682100TFif (not $t)
683100TFif (isa($returned, 'XML::Twig') and $$returned{'twig_finish_now'}) { }
70650TFunless _use('File::Temp')
71450TFunless ($$t{'twig_keep_encoding'} or $] < 5.006)
71550TFif (grep /useperlio=define/, `$^X -V`)
72450TFunless chmod $mode, $tmpfile
726100TFif ($suffix)
728100TFif ($suffix =~ /\*/) { }
73150TFunless rename $file, $backup
73350TFunless rename $tmpfile, $file
75250TF$@ ? :
75750TFunless _use('LWP::Simple')
75950TF$@ ? :
76650TF$@ ? :
772100TF$$t{'ErrorContext'} ? :
78150TF$$t{'ErrorContext'} ? :
783100TFisa($content, 'GLOB') ? :
790100TFif (isa($to_parse, 'GLOB')) { }
100TFelsif ($to_parse =~ /^\s*</) { }
100TFelsif ($to_parse =~ m[^\w+://.*\.html?$]) { }
100TFelsif ($to_parse =~ m[^\w+://]) { }
100TFelsif ($to_parse =~ /\.html?$/) { }
791100TF$to_parse =~ /<html/i ? :
794100TFunless _use('LWP::Simple')
797100TFunless _use('LWP::Simple')
80050TFif ($xml_parse_ok) { }
8040TFif ($doc =~ /<html/i) { }
818100TFif (_is_well_formed_xml($_[0])) { }
822100TFif (_is_well_formed_xml($html)) { }
833100TF$@ ? :
850100TFunless _use('HTML::TreeBuilder', '3.13')
863100TFif ($$options{'indent'})
87950TFif ($@ =~ /^\s*xml declaration not at start of external entity/) { }
50TFelsif ($@ =~ /^\s*not well-formed \(invalid token\)/) { }
885100TFunless (keys %xml_parser_encoding)
887100TFif (not $add_decl) { }
88850TFif ($xml_parser_encoding{$encoding}) { }
0TFelsif ($encoding eq 'euc-jp' and $xml_parser_encoding{'x-euc-jp-jisx0221'}) { }
0TFelsif ($encoding eq 'shift-jis' and $xml_parser_encoding{'x-sjis-jisx0221'}) { }
89550TFif ($add_decl) { }
93450TFif ($$meta{'http-equiv'} and $$meta{'http-equiv'} =~ /^\s*content-type\s*/i and $$meta{'content'} and $$meta{'content'} =~ m[^\s*text/html\s*;\s*charset\s*=\s*(\S*)\s*]i)
94850TFif (_use('Encode')) { }
0TFelsif (_use('Text::Iconv')) { }
0TFelsif (_use('Unicode::Map8') and _use('Unicode::String')) { }
9520TFif ($converter)
97950TFif ($2 and $block_tag{$2}) { }
0TFelsif ($3 and $block_tag{$3}) { }
98050TFunless $2 =~ m[/>]
998100TFif ($text_type{$type}) { }
1023100TFif ($disallowed{$module})
1024100TFif ($used{$module})
1025100TFif (eval "require $module") { }
102750TFif (${"${module}::VERSION";} >= $version) { }
1039100TFif ($n > 0) { }
100TFelsif ($n < 0) { }
1040100TFif $i == $n
100TFif (&$coderef)
1042100TFif $i == $n
100TFif (&$coderef)
1050100TFif ($uri =~ m[^\w+://]) { }
1057100TFif (defined $base and not $filename =~ m[^(?:[\\/]|\w+:)])
1068100TFunless open TWIG_TO_SLURP, "<$filename"
109150TFunless _use('LWP')
109250TFif ($^O ne 'VMS') { }
109350TFunless pipe README, WRITEME
1094100TFif (my $pid = fork) { }
1097100TF$safe ? :
1099100TF$@ ? :
1111100TFunless $response->is_success
11210TFunless $response->is_success
11220TF$safe ? :
11230TF$@ ? :
1147100TFif ($$t{'twig_keep_encoding'})
115550TFif (@saved_default_handler and defined $saved_default_handler[1]) { }
1169100TFif ($$p{'twig'}{'twig_doctype'}{'has_internal'} and not $expat_1_95_2)
1184100TFunless $_[0]
100TFif isa($_[0], 'GLOB') or isa($_[0], 'IO::Scalar')
1191100TFunless _set_special_handler($handlers, $path, $handler, $prev_handler) or _set_pi_handler($handlers, $path, $handler, $prev_handler) or _set_level_handler($handlers, $path, $handler, $prev_handler) or _set_regexp_handler($handlers, $path, $handler, $prev_handler) or _set_xpath_handler($handlers, $path, $handler, $prev_handler)
1209100TFif ($path =~ /^\s*($ALL|$DEFAULT|#COMMENT)\s*$/io) { }
1219100TFif (my $handler_data = _parse_xpath_handler($path, $handler)) { }
1231100TF$$handlers{'xpath_handler'}{$tag} ? :
1233100TFif ($prev_handler)
1235100TFif $$handler_data{'handler'}
1238100TFunless ($$a{'score'}{'type'} || 0) <=> ($$b{'score'}{'type'} || 0) or ($$b{'score'}{'anchored'} || 0) <=> ($$a{'score'}{'anchored'} || 0) or ($$b{'score'}{'steps'} || 0) <=> ($$a{'score'}{'steps'} || 0) or ($$b{'score'}{'predicates'} || 0) <=> ($$a{'score'}{'predicates'} || 0) or ($$b{'score'}{'tests'} || 0) <=> ($$a{'score'}{'tests'} || 0)
1253100TFif ($path =~ /^\s*(?:\?|#PI)\s*(?:([^\s]*)\s*)$/) { }
1267100TFif ($path =~ /^ \s* level \s* \( \s* ([0-9]+) \s* \) \s* $/ox) { }
1283100TFif ($path =~ /^\(\?([xism]*)(?:-[xism]*)?:(.*)\)$/) { }
130250TFif ($DEBUG_HANDLER >= 1)
130650TFif ($DEBUG_HANDLER and $path_to_check =~ /\S/)
1307100TFif $path_to_check =~ /\S/
1323100TFif ($2) { }
1324100TFif ($last_token_is_sep)
1328100TFif (defined $last_token_is_sep and not $last_token_is_sep)
1334100TFif ($last_token_is_sep)
1348100TF$xpath_original =~ m[^\s*/(?!/)] ? :
135750TF$DEBUG_HANDLER >= 2 ? :
1359100TFif ($predicate)
136050TFif ($DEBUG_HANDLER >= 2)
136350TFif ($DEBUG_HANDLER >= 2)
1366100TF$tag ne '*' ? :
1372100TFif ($sep eq '/') { }
50TFelsif ($sep eq '//') { }
140050TF$DEBUG_HANDLER >= 2 ? :
1411100TFif ($anchored)
141350TF$DEBUG_HANDLER >= 2 ? :
141750TFif $DEBUG_HANDLER >= 2
141950TFif $DEBUG_HANDLER >= 1
142150TFif ($@)
142450TFif $DEBUG_HANDLER >= 1
142550TFif $DEBUG_HANDLER >= 1
1441100TFif ($func or $string_regexp or $string_test_num or $string_test_alpha)
1443100TFif (defined $string) { }
100TFelsif ($att) { }
100TFelsif ($bare_att) { }
100TFelsif ($num_test and $num_test eq '=') { }
100TFelsif ($alpha_test) { }
100TFelsif ($func and $func =~ /^string/) { }
100TFelsif ($string_regexp and $string_regexp =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_MATCH)\s*($REG_REGEXP)/) { }
100TFelsif ($string_test_alpha and $string_test_alpha =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_COMP)\s*($REG_STRING)/) { }
50TFelsif ($string_test_num and $string_test_num =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_COMP)\s*($REG_NUMBER)/) { }
50TFelsif ($and_or) { }
1444100TF$att =~ /^#/ ? :
1447100TF$bare_att =~ /^#/ ? :
14590TF$2 eq '=' ? :
14620TF$and_or eq 'and' ? :
149750TFif $$handlers{'attcond_handlers'}
1577100TFif ref $$handlers{$path} and isa($$handlers{$path}, 'CODE')
1587100TFif (my $type = $$handler_data{'test_on_text'})
1602100TFif ($$t{'twig_parsing'})
1606100TFif ($weakrefs)
1623100TF$@ ? :
1629100TF$@ ? :
1643100TFif $t->root
1652100TFunless $$t{'twig_current'}
1653100TFif ($$t{'twig_stored_spaces'} or $option{'force'} or $$t{'twig_preserve_space'})
1654100TFif ($$t{'twig_current'}->is_pcdata) { }
1658100TFunless (defined $$t{'twig_space_policy'}{$current_gi})
1661100TFif ($$t{'twig_space_policy'}{$current_gi} or not $$t{'twig_stored_spaces'} =~ /\n/ or $option{'force'} or $$t{'twig_preserve_space'})
1686100TFif ($$t{'twig_in_pcdata'})
1693100TFif (my $func = $$t{'parse_start_tag'}) { }
50TFelsif ($$t{'twig_entities_in_attribute'}) { }
1702100TFif ($$t{'twig_read_external_dtd'})
1705100TFif (my $filter = $$t{'twig_input_filter'})
1710100TFif ($$t{'twig_map_xmlns'})
1717100TFif ($weakrefs)
1720100TFif $parent
1724100TFif ($parent) { }
1726100TFif ($prev_sibling)
1728100TFif ($weakrefs)
1731100TFif ($weakrefs)
1732100TFunless ($$parent{'first_child'})
1733100TFif ($weakrefs)
173950TFif defined $$t{'twig_dtd_handler'}
1744100TFif ($$t{'twig_default_print'}) { }
100TFelsif ($$t{'twig_roots'}) { }
1752100TF$p->recognized_string =~ m[/\s*>$]s ? :
1754100TFif $$t{'extra_data'}
1759100TFif (defined $id)
1761100TFif ($weakrefs)
1765100TFif ($$t{'twig_starttag_handlers'})
1772100TFunless &$handler($t, $elt)
1774100TFif (my $all = $$t{'twig_starttag_handlers'}{'handlers'}{$ALL})
1779100TFif ($$t{'twig_ignore_elts_handlers'})
1782100TFif (@handlers)
1785100TFif ($$elt{'att'}{'xml:space'} and $$elt{'att'}{'xml:space'} eq 'preserve')
1795100TFif (not $$t{'twig_keep_original_prefix'} and my $mapped_prefix = $$t{'twig_map_xmlns'}{$uri})
1798100TFif ($new_prefix eq '#default') { }
1804100TFif ($$t{'twig_keep_original_prefix'}) { }
1809100TFif ($$ns_info{'mapped_prefix'})
1815100TFif ($att_name) { }
1818100TFif ($$ns_info{'mapped_prefix'})
1827100TFif $map_att
1833100TFif ($att_name) { }
1848100TFunless $$ns_info{'uri'}
1859100TFif ($p->expand_ns_prefix($prefix) eq $uri)
1871100TFif (not exists $value{$att} and exists $$attlist{$att}{'default'} and $$attlist{$att}{'default'} ne '#IMPLIED')
1893100TFif ($string =~ s[^<\s*($REG_NAME)\s*[\s>/]][]s) { }
1906100TFif ($weakrefs)
1916100TFif ($$t{'twig_map_xmlns'})
1925100TFif ($$t{'twig_in_pcdata'})
192750TFif $$elt{'parent'}
1935100TFif ($parent)
1938100TFif ($$parent{'twig_to_be_normalized'})
1941100TFif ($$t{'extra_data'})
1946100TFif ($$t{'twig_handlers'})
1950100TFif ($$t{'twig_tdh'}) { }
1951100TFif (@handlers)
1952100TFif (my $all = $$t{'twig_handlers'}{'handlers'}{$ALL})
1960100TFunless &$handler($t, $elt)
1962100TFif (my $all = $$t{'twig_handlers'}{'handlers'}{$ALL})
1968100TFif ($$t{'twig_root_depth'} and $p->depth == $$t{'twig_root_depth'})
1969100TFif ($$t{'twig_default_print'}) { }
1972100TFif ($$t{'twig_keep_encoding'}) { }
1981100TFif ($$elt{'att'}{'xml:space'} and $$elt{'att'}{'xml:space'} eq 'preserve')
199050TFif (@{$$t{'twig_handlers_to_trigger'};})
199550TFunless &$handler($t, $handled_elt)
2012100TFif (my $found_path = &$trigger($$t{'_twig_context_stack'}))
2019100TFif (not @found_handlers and defined $$handlers{'handlers'}{$DEFAULT})
2022100TFif (@found_handlers and $$t{'twig_do_not_chain_handlers'})
2036100TFif (not $uri and not $name =~ /^xml/)
2037100TFif ($uri) { }
2038100TFif (my $mapped_prefix = $$t{'twig_map_xmlns'}{$uri}) { }
2042100TFif ($prefix eq '#default')
2043100TF$prefix ? :
2057100TFif ($$t{'twig_keep_encoding'})
2058100TFif (not $$t{'twig_in_cdata'}) { }
2063100TFif (length $string < 1024) { }
2074100TFif ($$t{'twig_input_filter'})
2075100TFif ($$t{'twig_char_handler'})
2079100TFif ($$t{'twig_in_cdata'}) { }
100TFelsif ($$t{'twig_in_pcdata'}) { }
2085100TFif ($$t{'extra_data'})
2093100TFif ($string =~ /\A\s*\Z/s) { }
2095100TFif ($$t{'extra_data'}) { }
2110100TFif ($$t{'extra_data'})
2129100TFif ($$t{'twig_in_pcdata'}) { }
213150TFif ($weakrefs)
213450TFif ($weakrefs)
213550TFif ($weakrefs)
2140100TFif ($t->_space_policy($XML::Twig::index2gi[$$twig_current{'gi'}]) and $$t{'twig_stored_spaces'})
214550TFif ($weakrefs)
2146100TFif (my $prev_sibling = $$twig_current{'last_child'}) { }
214750TFif ($weakrefs)
215250TFif ($weakrefs)
2159100TFif ($$t{'extra_data'})
2178100TFif ($$t{'twig_handlers'})
2182100TFunless &$handler($t, $elt)
219950TFunless &$handler($t, $pi)
100TFif ($handler)
2204100TFif (my $handler = $$t{'twig_handlers'}{'pi_handlers'}{$target})
2206100TFif (my $handler = $$t{'twig_handlers'}{'pi_handlers'}{''})
2208100TFdefined $data && $data ne '' ? :
2213100TFif (my $handler = $$t{'twig_handlers'}{'handlers'}{'#COMMENT'})
2219100TFif (my $handler = $$t{'twig_handlers'}{'handlers'}{'#COMMENT'})
2221100TFif (not defined $comment or $comment eq '')
2234100TFif ($$t{'twig_keep_encoding'})
2248100TFif ($$t{'twig_keep_encoding'})
2262100TFif ($$t{'twig_input_filter'})
2266100TFif ($keep) { }
100TFelsif ($process) { }
2268100TFif ($$t{'twig_stored_spaces'})
2283100TFif ($$t{'extra_data'})
2288100TFif (not $t->root) { }
100TFelsif ($$t{'twig_in_pcdata'}) { }
100TFelsif ($twig_current) { }
2298100TFif ($t->_space_policy($XML::Twig::index2gi[$$twig_current{'gi'}]) and $$t{'twig_stored_spaces'})
2307100TFif ($twig_current)
2333100TF$p->isa('XML::Twig') ? :
2336100TFif ($$t{'extra_data'})
2339100TFif ($$t{'twig_stored_spaces'})
2344100TFif $$t{'twig_tdh'}
2346100TFif $$t{'twig_original_selected_fh'}
2348100TFif (exists $$t{'twig_autoflush_data'})
2350100TFif $$t{'twig_autoflush_data'}{'fh'}
2351100TFif $$t{'twig_autoflush_data'}{'args'}
2373100TFif ($prev_sibling) { }
237550TFif ($weakrefs)
2380100TFif ($weakrefs)
2381100TFif ($weakrefs)
2389100TFif $$t{'twig_discard_spaces'}
2390100TFif $$t{'twig_keep_spaces'}
2391100TFif $$t{'twig_keep_spaces_in'} and $$t{'twig_keep_spaces_in'}{$gi}
2393100TFif $$t{'twig_discard_spaces_in'} and $$t{'twig_discard_spaces_in'}{$gi}
2409100TFif ($sysid)
2410100TFif ($ndata) { }
2411100TFif (not -f _based_filename($sysid, $p->base))
2414100TFif ($$t{'twig_expand_external_ents'})
2416100TFif (not defined $val)
2417100TFif ($$t{'twig_extern_ent_nofail'}) { }
2427100TFif ($missing_entity)
243050TFif ($entity_list)
243250TFif ($parser_version > 2.27)
2436100TFif ($$t{'twig_keep_encoding'})
243750TFif (defined $$ent{'val'} and not $ent_decl =~ /["']/)
24390TF$val =~ /"/ ? :
244450TFunless $$t{'twig_doctype'}{'internal'} =~ /<!ENTITY\s+$name\s+/
245650TFif ($$t{'twig_no_expand'})
24570TF$$t{'twig_keep_encoding'} ? :
2462100TFif (not defined $ent_content)
246750TFif ($$t{'twig_extern_ent_nofail'}) { }
250250TFif ($parser_version > 2.27) { }
2518100TFif ($$t{'twig_read_external_dtd'} and $sysid)
252750TFif $t_dtd->entity_list
254350TFif ($parser_version > 2.27 and $$t{'twig_doctype'}{'internal'} =~ /(^|>)\s*$/)
254450TF$XML::Twig::Elt::keep_encoding ? :
254550TFunless ($text)
256450TFif ($parser_version > 2.27 and $$t{'twig_doctype'}{'internal'} =~ /(^|>)\s*$/)
256550TF$XML::Twig::Elt::keep_encoding ? :
256650TFunless ($text)
2570100TFif $fixed
257150TFif defined $default
2573100TFif ($$t{'twig_dtd'}{'att'}{$gi}) { }
258650TFif defined $default
2601100TFif (not $$t{'twig_current'} and $$t{'twig_root'} and $string =~ /^\s+$/m)
2604100TFif ($string =~ /^&([^;]*);$/)
260650TFif ($p->original_string =~ /^</ and $p->original_string =~ />$/) { }
26080TFif $$t{'twig_do_not_escape_amp_in_atts'}
2612100TFif ($$t{'twig_keep_encoding'}) { }
2637100TFif ($$t{'twig_in_pcdata'}) { }
264050TFif ($weakrefs)
264350TFif ($weakrefs)
264450TFif ($weakrefs)
265350TFif ($weakrefs)
2654100TFif (my $prev_sibling = $$twig_current{'last_child'}) { }
265550TFif ($weakrefs)
265950TFif ($twig_current)
266050TFif ($weakrefs)
50TFif ($twig_current)
2676100TFunless $$t{'twig_xmldecl'} or $$t{'output_encoding'}
2679100TFif ($decl) { }
2686100TFif ($$t{'output_encoding'}) { }
100TFelsif ($$decl{'encoding'}) { }
2695100TFif (defined $$decl{'standalone'})
2697100TF$$decl{'standalone'} ? :
2709100TF$output_filter ? :
2714100TFunless defined $$t{'twig_doctype'}
271650TFif defined $name
2717100TFif defined $system
2718100TFif defined $public
2719100TFif defined $internal
2724100TFunless my $doctype = $$t{'twig_doctype'}
2730100TFunless my $doctype = $$t{'twig_doctype'}
2736100TFunless my $doctype = $$t{'twig_doctype'}
2742100TFunless my $doctype = $$t{'twig_doctype'}
2756100TFif $elt
278350TF_is_fh($_[0]) ? :
2790100TFif ($$t{'no_prolog'})
2792100TFdefined $$t{'no_dtd_output'} ? :
50TF$$t{'no_prolog'} ? :
2805100TFif ($doctype)
280650TFif $$doctype{'name'}
2807100TFif $$doctype{'pub'}
2808100TFif $$doctype{'sysid'} and not $$doctype{'pub'}
2809100TFif $$doctype{'sysid'}
2812100TFif ($update_dtd) { }
100TFelsif ($doctype) { }
2813100TFif ($doctype) { }
50TFelsif (not $$t{'twig_dtd'} and keys %{$t->entity_list;}) { }
2816100TFif ($internal)
282150TFif $t->entity_list
2822100TFif ($internal)
2832100TFif (my $internal = $$doctype{'internal'})
2844100TFif ($doctype_text) { }
285150TF$output_filter ? :
2876100TFunless open TWIG_PRINT_TO_FILE, ">$filename"
287750TFif ($] > 5.006 and not $$t{'twig_keep_encoding'})
287850TFif (grep /useperlio=define/, `$^X -V`)
2888100TF_is_fh($_[0]) ? :
2891100TFdefined $fh ? :
2892100TFdefined $args{'PrettyPrint'} ? :
2893100TFdefined $args{'EmptyTags'} ? :
2903100TFif defined $old_pretty
2904100TFif defined $old_empty_tag
2905100TFif ($fh)
291450TFif $$t{'twig_tdh'}
2916100TFif $$t{'twig_completely_flushed'}
2918100TF_is_fh($_[0]) ? :
2919100TFdefined $fh ? :
2920100TFref $_[0] ? :
2924100TFif (defined $args{'PrettyPrint'})
2930100TFif ($args{'EmptyTags'})
2939100TFif ($up_to) { }
100TFelsif ($$t{'twig_current'}) { }
2951100TFunless ($elt->_flushed)
2953100TFif ($$t{'twig_autoflush'})
2955100TFif $fh
2956100TFif @_
2964100TFif ($last_elt and $last_elt->in($elt)) { }
2966100TFunless ($elt->_flushed)
2978100TFif $last_elt and $elt == $last_elt
2983100TFif ($flush_trailing_data)
2988100TFif defined $old_select
2989100TFif defined $old_pretty
2990100TFif defined $old_empty_tag_style
299250TFif (my $ids = $$t{'twig_id_list'})
29930TFif (not defined $elt)
3004100TFif (_is_fh($_[0])) { }
3021100TFif (defined $args{'PrettyPrint'})
3027100TFif (defined $args{'EmptyTags'})
3038100TFif ($$t{'twig_keep_spaces'} and $$t{'trailing_spaces'})
3040100TFif defined $old_pretty
3041100TFif defined $old_empty_tag_style
305550TFif $$t{'twig_tdh'}
3059100TFif ($up_to) { }
100TFelsif ($$t{'twig_current'}) { }
3070100TFif ($last_elt and $last_elt->in($elt)) { }
3078100TFif $last_elt and $elt == $last_elt
3083100TFif (my $ids = $$t{'twig_id_list'})
3084100TFif (not defined $elt)
310550TFif $] < 5.006
3108100TFref $twig_or_class ? :
3113100TFif $elt_class->can($att) and not $accessor{$att}
3116100TFif (not $accessor{$att})
3120100TFif (@_)
3134100TFif $root->passes($cond)
3146100TFif $t->root->matches($cond)
3152100TFif (isa($_[0], 'ARRAY')) { }
3165100TFunless @unique and $unique[-1] == $current
3171100TFif (isa($_[0], 'ARRAY')) { }
3188100TFdefined $index ? :
3196100TFif (not $cond && !$root->passes($cond)) { }
3215100TFif ($root->passes($cond)) { }
3250100TFunless $index = $XML::Twig::gi2index{$old_gi}
326250TFunless my $doctype = $$t{'twig_doctype'}
3269100TFif ($$dtd{'att'}{$gi})
3274100TFif ($$attlist{$att}{'fixed'}) { }
328350TFif $t->entity_list
3291100TF_is_fh($_[0]) ? :
3292100TFif ($fh) { }
3309100TFunless $$t{'twig_parsing'}
331750TFif ($$t{'twig_map_xmlns'}) { }
3332100TFif (not defined $fh) { }
50TFelsif (defined $fh) { }
333650TFif $old_fh
3340100TFif ($$t{'twig_keep_encoding'}) { }
3358100TFif (not $input_filter or isa($input_filter, 'CODE')) { }
50TFelsif ($input_filter eq 'latin1') { }
50TFelsif ($filter{$input_filter}) { }
341850TFif ($$t{'twig_root'} and isa($$t{'twig_root'}, 'XML::Twig'))
3423100TFif $$t{'twig_root'}
344350TFif ($string eq '<!DOCTYPE') { }
345950TFif ($expat_1_95_2 and $p->recognized_string eq '[' and not $$p{'twig'}{'expat_1_95_2_seen_bracket'}) { }
348350TFif ($string eq '<!DOCTYPE') { }
350650TFif ($name)
351050TFif $name
351150TFif $pubid
3512100TFif $sysid and not $pubid
3513100TFif $sysid
3514100TFif $internal and not $expat_1_95_2
3515100TFunless $internal or $expat_1_95_2
352650TFif ($name)
353050TFif $name
353150TFif $pubid
3532100TFif $sysid and not $pubid
3533100TFif $sysid
3534100TFif $internal
3535100TFunless $internal or $expat_1_95_2
3568100TFunless ($p->depth == 0)
3569100TFif ($$t{'twig_map_xmlns'})
3575100TFif (_handler($t, $$t{'twig_roots'}, $gi))
3584100TF$$t{'twig_keep_encoding'} ? :
100TF$$t{'twig_default_print'} ? :
3588100TFif ($p->depth == 0) { }
100TFelsif ($$t{'twig_starttag_handlers'}) { }
3590100TFif $tag
360250TFunless $last_handler_res
3605100TFif $tag and !@handlers || $last_handler_res
3609100TFif $tag
3620100TF$$t{'twig_keep_encoding'} ? :
100TF$$t{'twig_default_print'} ? :
3625100TFif ($$t{'twig_endtag_handlers'})
363150TFif (not $last_handler_res)
3638100TFif defined $tag
3640100TFif ($p->depth == 0)
365450TF$$t{'twig_keep_encoding'} ? :
100TF$$t{'twig_default_print'} ? :
3659100TFif (my $handler = $$t{'twig_handlers'}{'pi_handlers'}{$target} || $$t{'twig_handlers'}{'pi_handlers'}{''}) { }
367150TFif defined $pi
368450TFif ($action eq 'print')
369850TFif ($action eq 'print')
3705100TFif (not $$t{'twig_ignore_level'})
3719100TFif ($$t{'twig_endtag_handlers'})
3737100TFif (not $elt && ref $elt && isa($elt, 'XML::Twig::Elt'))
3743100TFunless ($elt == $current or $$current{'last_child'} and $elt == $$current{'last_child'} or $current->in($elt))
3746100TF$current == $elt ? :
375550TFif ($action eq 'print')
3770100TFif ($$elt_in_stack{'_elt'} and $elt == $$elt_in_stack{'_elt'})
3781100TFif ($output_fh and not $$t{'twig_output_fh_selected'})
3793100TFunless $$t{'twig_output_fh'}
380250TFif $_[0]{'twig_xmldecl'}
380750TFunless $t->xml_version
3819100TFif ($encoding and not $encoding =~ /^utf-?8$/i or $$t{'twig_keep_encoding'} or $output_filter)
382750TFif $_[0]{'twig_xmldecl'}
383750TFif $_[0]{'twig_xmldecl'}
384250TFunless $t->xml_version
3851100TFif defined $_[0]{'twig_parser'}
3858100TFif defined $_[0]{'twig_parser'}
3868100TFif (my $start_document = $handler->can('start_document'))
387350TFif ($t->root)
387450TFif (my $end_document = $handler->can('end_document'))
3896100TFif ($$t{'twig_current'}) { }
3902100TFunless ($elt->_flushed)
390450TFif (my $start_document = $handler->can('start_document'))
3912100TFif ($last_elt and $last_elt->in($elt)) { }
3914100TFunless ($elt->_flushed)
391650TFif (my $start_element = $handler->can('start_element'))
391750TFif (my $tag_data = &$start_tag_data($elt))
3929100TFif $last_elt and $elt == $last_elt
3933100TFif (not $$t{'twig_parsing'})
393450TFif (my $end_document = $handler->can('end_document'))
3953100TFif (my $xml_decl = $handler->can('xml_decl'))
3960100TFunless $doctype
396650TFif (my $start_dtd = $handler->can('start_dtd'))
397150TFif (my $end_dtd = $handler->can('end_dtd'))
397950TFif (_use('Encode')) { }
0TFelsif (_use('Text::Iconv')) { }
0TFelsif (_use('Unicode::Map8') and _use('Unicode::String')) { }
399350TFif (_use('Encode')) { }
0TFelsif (_use('Text::Iconv')) { }
0TFelsif (_use('Unicode::Map8') and _use('Unicode::String')) { }
401750TFunless _use('HTML::Entities')
402350TFif ($] < 5.008) { }
403550TFif ($] < 5.008) { }
405250TFif ($len == 2) { }
0TFelsif ($len == 3) { }
0TFelsif ($len == 4) { }
0TFelsif ($len == 1) { }
4070100TF$hex ? :
407650TF$_[1] ? :
407750TFunless _use('Unicode::Map8')
407850TFunless _use('Unicode::String')
408050TFunless $cnv = 'Unicode::Map8'->new($enc)
408850TFunless ($sub)
409350TF$_[1] ? :
409450TFunless _use('Text::Iconv')
409550TFunless $cnv = 'Text::Iconv'->new('utf8', $enc)
50TFunless $cnv = 'Text::Iconv'->new('utf8', $enc)
4103100TFunless ($sub)
410450TFif ($@ =~ /^Unsupported conversion: Invalid argument/) { }
411450TF$_[1] ? :
411650TFunless $sub
4124100TFwantarray ? :
413450TFif ($t->root)
4167100TFunless $ents_to_add and %$ents_to_add
4188100TFif (isa(ref $_[0], 'XML::Twig::Entity')) { }
420450TFdefined $fh ? :
420950TFif (isa($ent, 'XML::Twig::Entity'))
421150TFif defined $old_select
4246100TFif defined $val
4247100TFif defined $sysid
4248100TFif defined $pubid
4249100TFif defined $ndata
4250100TFif defined $param
4259100TFdefined $_[0]{'sysid'} ? :
426050TFdefined $_[0]{'pubid'} ? :
4261100TFdefined $_[0]{'ndata'} ? :
4262100TFdefined $_[0]{'param'} ? :
426850TFif (not defined $text)
426950TFif ($fh) { }
427650TFif (not defined $text)
4282100TFif not $$ent{'name'}
4286100TFif $$ent{'param'}
4289100TFif (defined $$ent{'val'} and not defined $$ent{'sysid'} and not defined $$ent{'pubid'}) { }
50TFelsif (defined $$ent{'sysid'}) { }
4293100TFif $$ent{'pubid'}
4294100TFunless $$ent{'pubid'}
4296100TFif $$ent{'ndata'}
430250TF$_[0] =~ /"/ ? :
440250TFif (eval 'require Scalar::Util' and defined &Scalar::Util::weaken) { }
0TFelsif (eval 'require WeakRef') { }
4421100TFunless @_
4428100TFref $_[0] eq 'HASH' ? :
4430100TFif ($atts and defined $$atts{'#CDATA'})
4437100TFif ($gi eq '#PCDATA') { }
100TFelsif ($gi eq '#ENT') { }
100TFelsif ($gi eq '#CDATA') { }
100TFelsif ($gi eq '#COMMENT') { }
100TFelsif ($gi eq '#PI') { }
4438100TFif (grep {ref $_;} @_)
4444100TFif (grep {ref $_;} @_)
4448100TFif (grep {ref $_;} @_)
4452100TFif (grep {ref $_;} @_)
4457100TFif (@_) { }
4463100TFif ($atts)
4465100TFif (defined $$atts{'#ASIS'})
4466100TFif (defined $$atts{'#EMPTY'})
4467100TFif (keys %$atts)
4468100TFif $$atts{$ID}
4481100TFif (ref $class)
4490100TFif ($$t{'twig_id_list'})
4507100TFif ($elt->tag eq 'head') { }
100TFelsif ($elt->tag ne 'html') { }
4524100TFunless (defined $XML::Twig::gi2index{$gi})
4548100TFif ($qname =~ /^([^:]*):/) { }
4569100TFdefined $_[0] ? :
4570100TF$prefix ? :
45810TF$prefix eq '#default' ? :
45820TFif (not $$root{'att'}{$prefix_att})
45950TF$att =~ /^xmlns:(.*)$/ ? :
0TF$att eq 'xmlns' ? :
45990TFif (not exists $$map{$prefix})
46080TF$prefix ? :
46170TFif ($elt->_ns_prefix and $elt->namespace eq $uri)
46200TFif $_ =~ /xmlns(:|$)/
4639100TFif $gi_nb >= $XML::Twig::SPECIAL_GI
4645100TFif ($_[0]{'gi'} >= $XML::Twig::SPECIAL_GI) { }
468750TFdefined $_[1] ? :
469050TFif $_[0]{'empty'} or 0
4698100TFif (exists $$descendant{'cdata'})
471050TFif $$descendant{'asis'}
4721100TFunless $curr_elt
4728100TFif ($elt->_extra_data_in_pcdata)
4747100TFif ($$elt{'extra_data_before_end_tag'}) { }
4763100TFif ((my $offset = index($modified, $initial)) != -1) { }
100TFelsif (($offset = index($initial, $modified)) != -1) { }
4771100TFif $$_{'offset'} >= 0
4774100TFunless _match_extra_data_words($elt, $initial, $modified) or _match_extra_data_chars($elt, $initial, $modified)
4801100TFif (@$initial <= @$modified) { }
4804100TFif ($ok)
4819100TFif ($ok)
483350TFif ($$cpi{'offset'} < $prev_pos)
4850100TFif ($s_word ne $l_word)
4855100TFif (not @$long and $s_word ne $l_word)
490150TFunless ($$elt{'gi'} == $XML::Twig::gi2index{'#PI'})
491650TFif (defined $data and $data ne '')
4923100TFunless ($$elt{'gi'} == $XML::Twig::gi2index{'#COMMENT'})
4940100TFunless ($$elt{'gi'} == $XML::Twig::gi2index{'#CDATA'})
4963100TFunless $elt->is_elt
4965100TFif $child->is_elt
4973100TFunless $child->is($exp)
4979100TFunless my $child = $$elt{'first_child'}
4980100TFunless $child->passes($exp)
4981100TFif $$child{'next_sibling'}
5034100TF$cond =~ s/^\s*!// ? :
5036100TFif (ref $cond eq 'CODE')
5038100TFif (ref $cond eq 'Regexp') { }
5042100TFif ($cond eq '#ELT') { }
100TFelsif ($cond eq '#TEXT') { }
100TFelsif ($cond =~ /^\s*($REG_NAME_W)\s*$/o) { }
100TFelsif ($cond =~ /^\s*($REG_REGEXP)\s*$/o) { }
100TFelsif ($cond =~ /^\s*($REG_NAME_W)?\s* # $1 \[\s*(-?)\s*(\d+)\s*\] # [$2] \s*$/ox) { }
100TFelsif ($cond =~ /^\s*\.([\w-]+)\s*$/o) { }
100TFelsif ($cond =~ /^\s*($REG_NAME_W?)\s*($REG_PREDICATE)\s*$/) { }
100TFelsif ($cond =~ /^\s*($REG_NAKED_PREDICATE)\s*$/) { }
5048100TFif ($1 ne '*') { }
5052100TFif ($gi) { }
5074100TF$neg ? :
5075100TFif ($gi and $gi ne '*') { }
5087100TF$tag && $tag ne '*' ? :
5101100TFif ($@)
5115100TFif (defined $string) { }
100TFelsif ($att) { }
100TFelsif ($bare_att) { }
50TFelsif ($num_test and $num_test eq '=') { }
100TFelsif ($alpha_test) { }
100TFelsif ($func and $func =~ /^(?:string|text)/) { }
100TFelsif ($string_regexp and $string_regexp =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*($REG_MATCH)\s*($REG_REGEXP)/) { }
100TFelsif ($string_eq and $string_eq =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*(!?=)\s*($REG_VALUE)/) { }
50TFelsif ($string_test and $string_test =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*([<>]=?)\s*($REG_VALUE)/) { }
100TFelsif ($and_or) { }
5124100TF$and_or eq 'and' ? :
5151100TFif ($op eq '=') { }
100TFelsif ($op eq '!=') { }
5158100TFunless $cond
51660TFif ($XML::Twig::weakrefs)
5205100TFif ($child) { }
5208100TFif ($cond =~ /^\s*($REG_NAME)/) { }
522150TFif ($XML::Twig::weakrefs)
52370TFif ($XML::Twig::weakrefs)
5269100TFunless $new_class
527150TF$class ? :
5287100TFunless $elt->tag eq 'span' and $elt->class
5293100TFunless $elt->tag eq 'div' and $elt->class
530050TFunless defined $elt_class
5301100TF$elt->class =~ /(?:^|\s)\Q$class\E(?:\s|$)/ ? :
5310100TFif keep_atts_order()
5311100TFisa($_[0] || '', 'HASH') ? :
5313100TFif (exists $atts{$ID})
532550TFif ($_[0] and ref $_[0] and not $_[1])
5328100TFunless ($$elt{'att'})
5330100TFif keep_atts_order()
5336100TFif ($att eq $ID)
5360100TFunless defined $value
53690TFif ($att ne lc $att)
5380100TFif exists $$elt{'att'}{$ID}
5391100TFif ($XML::Twig::weakrefs)
5407100TFif (defined $$elt{'att'}{$ID}) { }
541050TF$_[0] && ref $_[0] && isa($_[0], 'CODE') ? :
541950TFunless (exists $$elt{'att'})
5420100TFunless (exists $$elt{'att'}{$ID})
5426100TFunless ($t)
542750TFif (exists $$t{'twig_id_list'}{$id})
5473100TFif $child->passes($cond)
5482100TFwantarray ? :
5489100TFwantarray ? :
5496100TFunless $child->passes($cond)
5506100TFif $elt->passes($cond)
5515100TFif $elt->passes($cond)
5524100TF$include_self ? :
5536100TFif (defined $$elt{'att'}{$att} and !%tags || $tags{$XML::Twig::index2gi[$$elt{'gi'}]})
5550100TFif (defined $$elt{'att'}{$att} and !%tags || $tags{$XML::Twig::index2gi[$$elt{'gi'}]})
5562100TFif $elt->namespace('')
5584100TFif defined $_[0] and (ref $_[0] and isa($_[0], 'XML::Twig::Elt'))
5590100TFif ($cond)
5591100TFunless (defined($ind = $XML::Twig::gi2index{$cond}))
5596100TFif ($next_elt = $$elt{'first_child'}) { }
100TFelsif ($next_elt = $$elt{'next_sibling'}) { }
5603100TFif $subtree_root and $elt == $subtree_root
5611100TFif $subtree_root and $elt == $subtree_root
5616100TFif $subtree_root and $subtree_root == $next_elt
5619100TFif $subtree_root and $subtree_root == $next_elt
5640100TFif (not $cond or $last_descendant->matches($cond)) { }
5661100TFif (defined $_[0] and (ref $_[0] and isa($_[0], 'XML::Twig::Elt')))
5663100TFif $elt == $subtree_root
5669100TFif $elt == $subtree_root
5670100TFif ($prev_elt = $$elt{'prev_sibling'}) { }
5686100TF$elt ? :
5692100TFif not $cond or $elt->matches($cond)
5698100TFif (not $cond)
5700100TFif ($following) { }
5714100TF$elt ? :
5720100TFif not $cond or $elt->matches($cond)
5726100TFif (not $cond)
5728100TFif ($preceding) { }
5741100TF$cond ? :
5755100TFif (ref $ancestor and isa($ancestor, 'XML::Twig::Elt')) { }
5757100TFif $elt == $ancestor
5761100TFif $elt->matches($ancestor)
5768100TFunless my $dest = $elt->first_child(@_)
5779100TFunless my $dest = $elt->first_child(@_)
5785100TFunless my $dest = $$elt{'first_child'}
5791100TFunless my $dest = $elt->last_child(@_)
5797100TFunless my $dest = $elt->last_child(@_)
5803100TFunless my $dest = $$elt{'last_child'}
5809100TFunless my $dest = $elt->child(@_)
5815100TFunless my $dest = $elt->child(@_)
5822100TFunless my $dest = $elt->child($nb)
5828100TFunless my $dest = $elt->_prev_sibling(@_)
5834100TFunless my $dest = $elt->_prev_sibling(@_)
5840100TFunless my $dest = $$elt{'prev_sibling'}
5846100TFunless my $dest = $elt->next_sibling(@_)
5852100TFunless my $dest = $elt->next_sibling(@_)
5858100TFunless my $dest = $$elt{'next_sibling'}
5864100TFunless my $dest = $elt->prev_elt(@_)
5870100TFunless my $dest = $elt->prev_elt(@_)
5876100TFunless my $dest = $elt->prev_elt
5882100TFunless my $dest = $elt->next_elt(@_)
5888100TFunless my $dest = $elt->next_elt(@_)
5894100TFunless my $dest = $elt->next_elt
5900100TFunless my $dest = $elt->parent(@_)
5906100TFunless my $dest = $elt->parent(@_)
5912100TFunless my $dest = $$elt{'parent'}
5918100TFunless my $parent = $$elt{'parent'}
5919100TFunless my $first_child = $parent->first_child(@_)
5920100TF$first_child == $elt ? :
5925100TFunless my $parent = $$elt{'parent'}
5926100TFunless my $last_child = $parent->last_child(@_)
5927100TF$last_child == $elt ? :
5937100TFif not $cond or $elt->matches($cond)
5944100TFunless $level
5947100TFunless $elt = $$elt{'parent'}
5948100TFif ($elt->matches($cond))
5956100TF$include_self ? :
5962100TFif ($next_elt = $$elt{'first_child'}) { }
100TFelsif ($next_elt = $$elt{'next_sibling'}) { }
5969100TFif $elt == $subtree_root
5976100TFif $elt == $subtree_root
5981100TFif $subtree_root == $next_elt
5984100TFif $subtree_root == $next_elt
6003100TFif (not $cond or defined($ind = $XML::Twig::gi2index{$cond})) { }
6008100TFif ($next_elt = $$elt{'first_child'}) { }
100TFelsif ($next_elt = $$elt{'next_sibling'}) { }
601550TFif $subtree_root and $elt == $subtree_root
6022100TFif $subtree_root and $elt == $subtree_root
6027100TFif $subtree_root and $subtree_root == $next_elt
6030100TFif $subtree_root and $subtree_root == $next_elt
6034100TFif not $cond or $$elt{'gi'} eq $ind
6049100TF$elt->passes($cond) ? :
6057100TFif ($nb > 0) { }
100TFelsif ($nb < 0) { }
6059100TFunless $elt = $elt->next_sibling(@_)
6063100TFunless $elt = $elt->prev_sibling(@_)
6072100TF$elt ? :
6079100TFif ($nb >= 0) { }
6080100TFunless $elt = $elt->first_child(@_)
6082100TFunless $elt = $elt->next_sibling(@_)
6085100TFunless $elt = $elt->last_child(@_)
6087100TFunless $elt = $elt->prev_sibling(@_)
6102100TFif $_[0] and not $elt->matches(@_)
6141100TFif ($xpath_exp =~ s[^/][]) { }
100TFelsif ($xpath_exp =~ s[^\./][]) { }
6160100TFif ($sub_exp eq '..') { }
100TFelsif ($sub_exp =~ /^\.(.*)$/s) { }
616150TFif $wildcard
6170100TFif (not $axis)
6171100TF$wildcard ? :
6172100TFif (not $gi or $gi eq '*')
6176100TFif ($predicates and $predicates =~ /^\s*\[\s*((-\s*)?\d+)\s*\]\s*$/) { }
100TFelsif ($predicates and $predicates =~ /^\s*\[\s*last\s*\(\s*\)\s*\]\s*$/) { }
6179100TFif $offset > 0
618050TF$axis eq 'child' ? :
50TF$axis eq 'descendant' ? :
618850TFif $wildcard
6205100TFif ($pred =~ /^(-?\s*\d+)$/) { }
6207100TFif ($step =~ /^\s*grep(.*) (\$_->\w+\(\s*'[^']*'\s*\))/) { }
621050TFif ($pos > 0)
6218100TFif ($pred =~ s/^string\(\s*\)\s*=\s*($REG_STRING)\s*//o) { }
100TFelsif ($pred =~ s/^string\(\s*\)\s*($REG_MATCH)\s*($REG_REGEXP)\s*//o) { }
100TFelsif ($pred =~ s/^@($REG_NAME)\s*($REG_OP)\s*($REG_STRING|$REG_NUMBER)//o) { }
100TFelsif ($pred =~ s/^@($REG_NAME)\s*($REG_MATCH)\s*($REG_REGEXP)\s*//o) { }
100TFelsif ($pred =~ s/^@($REG_NAME)\s*//o) { }
100TFelsif ($pred =~ s/^\s*(?:not|!)\s*@($REG_NAME)\s*//o) { }
100TFelsif ($pred =~ s/^\s*([()])//) { }
100TFelsif ($pred =~ s/^\s*(and|or)\s*//) { }
6244100TFif $pred
6254100TFif ($xpath_exp)
626050TFif ($@)
626950TFif ($XML::Twig::XPath::VERSION or 0)
62710TFif (eval { do { $$check_twig{'twig_xp'}->_parse($xpath_expression) } })
6287100TFunless defined $offset
6302100TFwantarray ? :
6313100TFunless ($parent = $$elt{'parent'})
6318100TFif ($XML::Twig::weakrefs)
6322100TFif ($$elt{'twig_current'})
6330100TFif ($$parent{'first_child'} == $elt)
6332100TFunless ($$elt{'next_sibling'})
6334100TFif ($XML::Twig::weakrefs)
100TFif ($$parent{'last_child'} == $elt)
6336100TFif ($prev_sibling = $$elt{'prev_sibling'})
6338100TFif ($next_sibling = $$elt{'next_sibling'})
6339100TFif ($XML::Twig::weakrefs)
6342100TFif ($XML::Twig::weakrefs)
6343100TFif ($XML::Twig::weakrefs)
6346100TFif ($prev_sibling and $next_sibling and $prev_sibling->is_text and $XML::Twig::index2gi[$$prev_sibling{'gi'}] eq $XML::Twig::index2gi[$$next_sibling{'gi'}])
6368100TFif ($$elt{'twig_current'})
6370100TFif (not $$elt{'parent'}) { }
6373100TFunless (@children == 1)
637750TFif ($XML::Twig::weakrefs)
6385100TFif (@children)
6390100TFif ($prev_sibling) { }
639250TFif ($XML::Twig::weakrefs)
6402100TFif ($next_sibling) { }
640550TFif ($XML::Twig::weakrefs)
641350TFif ($XML::Twig::weakrefs)
6416100TFif ($prev_sibling and $prev_sibling->is_text and $XML::Twig::index2gi[$$first_child{'gi'}] eq $XML::Twig::index2gi[$$prev_sibling{'gi'}])
6418100TFif ($next_sibling and $next_sibling->is_text and $XML::Twig::index2gi[$$last_child{'gi'}] eq $XML::Twig::index2gi[$$next_sibling{'gi'}])
6422100TFif ($$elt{'parent'}{'twig_current'} and $$elt{'last_child'}->is_text)
6445100TFif (my $extra_data = $$elt{'extra_data'})
6447100TFif ($target) { }
6449100TFif ($target->is('#ELT')) { }
50TFelsif ($target->is('#TEXT')) { }
6461100TFif (my $extra_data = $elt->_extra_data_before_end_tag)
6462100TFif (my $target = $$elt{'next_sibling'}) { }
50TFelsif (my $parent = $$elt{'parent'}) { }
6463100TFif ($target->is('#ELT')) { }
50TFelsif ($target->is('#TEXT')) { }
6489100TFif ($$elt{'parent'})
6493100TFif (ref $_[0]) { }
6495100TFif $_[1]
6500100TFif (my $method = $method{$pos}) { }
6502100TFunless (ref $_[0] and isa($_[0], 'XML::Twig::Elt'))
6503100TFif (not defined $_[0]) { }
100TFelsif (not ref $_[0]) { }
6514100TFif (not $$ref{'parent'} and $pos =~ /^(before|after)$/ and not exists $$elt{'target'} and not exists $$elt{'comment'})
6523100TFif (my $ids = $$elt{'twig_id_list'} and my $t = $ref->twig)
652750TFif ($XML::Twig::weakrefs)
6539100TFunless ($$ref{'parent'})
654050TFif (my $t = $ref->twig) { }
6541100TFif (exists $$elt{'comment'} or exists $$elt{'target'}) { }
655350TFif ($XML::Twig::weakrefs)
6554100TFif ($$parent{'first_child'} == $ref)
6556100TFif ($prev_sibling)
655750TFif ($XML::Twig::weakrefs)
655950TFif ($XML::Twig::weakrefs)
6569100TFunless ($$ref{'parent'})
657050TFif (my $t = $ref->twig) { }
6571100TFif (exists $$elt{'comment'} or exists $$elt{'target'}) { }
658350TFif ($XML::Twig::weakrefs)
658450TFif ($XML::Twig::weakrefs)
100TFif ($$parent{'last_child'} == $ref)
658750TFif ($XML::Twig::weakrefs)
658950TFif ($XML::Twig::weakrefs)
100TFif ($next_sibling)
660250TFif ($XML::Twig::weakrefs)
660450TFif ($XML::Twig::weakrefs)
100TFunless ($$parent{'last_child'})
660650TFif ($XML::Twig::weakrefs)
660850TFif ($XML::Twig::weakrefs)
100TFif ($next_sibling)
662050TFif ($XML::Twig::weakrefs)
662150TFif ($XML::Twig::weakrefs)
6622100TFunless ($$parent{'first_child'})
662450TFif ($XML::Twig::weakrefs)
6625100TFif ($prev_sibling)
6633100TF$ref->is_text ? :
665950TFunless $allowed_options{$option}
6664100TFif ($options{'content_key'} =~ /^-/) { }
6673100TFif (isa($options{'forcearray'}, 'ARRAY'))
6680100TFif (ref $options{'keyattr'} eq 'ARRAY') { }
50TFelsif (ref $options{'keyattr'} eq 'HASH') { }
668550TFunless $prefix eq '+'
668650TFif $prefix eq '-'
6694100TFunless $prefix
6695100TFif $prefix eq '-'
6701100TFif ($options{'var'}) { }
6704100TFif ($options{'variables'})
670950TFif ($options{'var_regexp'} and not $options{'var'})
6724100TF$$options{'noattr'} || !$elt->atts ? :
6737100TFif ($child->is_text) { }
6740100TFif ($$options{'normalise_space'} >= 2)
6741100TFif ($$options{'force_content'} or $nb_atts or scalar @children > 1) { }
6757100TFif (my $grouped_tag = $$options{'group_tags'}{$child_gi})
6759100TFif (not ref $child_data eq 'HASH' && keys %$child_data == 1 && defined(my $grouped_child_data = $$child_data{$grouped_tag})) { }
6768100TFif ($$options{'extra_folding'})
6769100TFif (ref $child_data eq 'HASH' and keys %$child_data == 1 and defined(my $content = $$child_data{$$options{'content_key'}}))
6776100TFif (my $keyatt = $child->_key_attr($options)) { }
100TFelsif ($$options{'forcearray'} or $$options{'forcearray_tags'}{$child_gi} or $nb_children{$child_gi} > 1) { }
6779100TFif ($$options{'normalise_space'} >= 1)
6801100TFif ($$options{'remove_key_for_all'}{$att} or $$options{'remove_key_for_elt'}{"$gi#$att"})
6806100TF$$options{'var'} ? :
6807100TFif ($$options{'normalise_space'} >= 2)
6809100TFif ($$options{'prefix_key_for_all'}{$att} or $$options{'prefix_key_for_elt'}{"$gi#$att"}) { }
6826100TFif $$options{'noattr'}
6827100TFif ($$options{'key_for_all'}) { }
50TFelsif ($$options{'key_for_elt'}) { }
6829100TFif ($$options{'key_for_all'}{$att})
6834100TFif (my $key_for_elt = $$options{'key_for_elt'}{$XML::Twig::index2gi[$$elt{'gi'}]})
6835100TFif defined $$elt{'att'}{$key_for_elt}
6843100TFif ($$options{'var'}) { }
686350TFunless my $atts = $_[0]->atts
686850TFunless my $atts = $_[0]->atts
6869100TFscalar keys %$atts ? :
6875100TFif (defined(my $value = $$options{'var_values'}{$2})) { }
6888100TFif (defined(my $var_name = $$elt{'att'}{$$options{'var'}}))
6897100TF$elt->is_text ? :
6914100TFif ($elt->is_text) { }
6927100TFif ($elt->is_text) { }
6948100TFif (ref $_[0]) { }
6954100TFunless (@tags)
6967100TFif ($previous_match) { }
6971100TFif $return_all
6978100TFif $return_all
6982100TFif (@matches) { }
7003100TFif ($previous_match and $text)
7008100TFif $return_all
701750TFif ($] >= 5.008 and not _keep_encoding())
7018100TFunless ($encode_is_loaded)
7034100TFif ($is_string) { }
705250TFif ($next_sibling = $$text_elt{'next_sibling'} and $XML::Twig::index2gi[$$text_elt{'gi'}] eq $XML::Twig::index2gi[$$next_sibling{'gi'}])
7058100TFif (not $text_elt->text)
706750TFif ($prev_sibling = $$post_match{'prev_sibling'} and $XML::Twig::index2gi[$$post_match{'gi'}] eq $XML::Twig::index2gi[$$prev_sibling{'gi'}])
7075100TFif (not $text_elt->text)
7086100TF$_[0] =~ /&e[ln]t/ ? :
7101100TFif ($item =~ /^&elt\s*\(([^)]*)\)/) { }
100TFelsif ($item =~ /^&ent\s*\(\s*([^\s)]*)\s*\)/) { }
711550TFif ($@)
7124100TFunless isa($e2, 'XML::Twig::Elt')
7126100TFunless $e1->is_text and $e2->is_text and $e1->gi eq $e2->gi
713350TFif ($extra_data)
7138100TFif ($extra_data = $e2->_extra_data_in_pcdata)
714150TFif (my $extra_data_before_end_tag = $e2->_extra_data_before_end_tag)
715250TFif ($e1->_last_child and $e1->_last_child->is_pcdata and @e2_children and $e2_children[0]->is_pcdata)
7167100TFif ($elt->extra_data)
7168100TFif ($elt->_extra_data_before_end_tag)
7170100TFif ($elt->is_asis)
7173100TFif (exists $$elt{'pcdata'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'target'}) { }
100TFelsif (exists $$elt{'comment'}) { }
100TFelsif (exists $$elt{'ent'}) { }
7175100TFif ($elt->_extra_data_in_pcdata)
717950TFif ($elt->_extra_data_in_pcdata)
7189100TFif (my $atts = $elt->atts)
719150TFif keep_atts_order()
720350TFif ($XML::Twig::weakrefs)
721350TFunless $XML::Twig::weakrefs
7220100TFif $XML::Twig::weakrefs
722750TFif $ID and $t and defined $$elt{'att'} and exists $$elt{'att'}{$ID}
7360100TFdefined $_[1] ? :
7362100TFif ($style =~ /^\d+$/) { }
7363100TFunless $style < keys %pretty_print_style
7367100TFunless exists $pretty_print_style{$style}
7370100TFif ($pretty == $WRAPPED or $pretty == $INDENTEDA)
737150TFunless XML::Twig::_use('Text::Wrap')
7383100TFdefined $_[1] ? :
7385100TFif ($style =~ /^\d+$/) { }
7386100TFunless $style < keys %empty_tag_style
7391100TFunless exists $empty_tag_style{$style}
73990TFunless $pretty_print_style{$a} <=> $pretty_print_style{$b}
7404100TFunless exists $quote_style{$style}
741050TFdefined $_[1] ? :
7418100TFdefined $_[1] ? :
7425100TFdefined $_[1] ? :
743350TFdefined $_[1] ? :
74400TFdefined $_[1] ? :
746150TFdefined $_[1] ? :
747150TFdefined $_[1] ? :
7473100TFif (isa($new_value, 'XML::Twig::Elt') or isa($new_value, 'XML::Twig'))
7475100TFif (not $new_value or isa($new_value, 'CODE')) { }
100TFelsif ($new_value eq 'latin1') { }
100TFelsif ($XML::Twig::filter{$new_value}) { }
7489100TFdefined $_[1] ? :
7491100TFif (isa($new_value, 'XML::Twig::Elt') or isa($new_value, 'XML::Twig'))
7493100TFif (not $new_value or isa($new_value, 'CODE')) { }
50TFelsif ($new_value eq 'latin1') { }
100TFelsif ($XML::Twig::filter{$new_value}) { }
7507100TFdefined $_[1] ? :
751450TFdefined $_[1] ? :
7529100TFif $$elt{'gi'} < $XML::Twig::SPECIAL_GI
753650TF$att ? :
7537100TFif ($ns_map)
7540100TFif ($output_text_filter)
7543100TF$pretty == $INDENTEDA ? :
100TF$pretty == $NSGMLS ? :
7549100TFif ($$option{'escape_gt'} and not $replaced_ents =~ />/)
7552100TF$keep_atts_order ? :
7553100TFif (@att_names) { }
7554100TF$ns_map ? :
7555100TFif ($output_text_filter)
7565100TFif ($pretty == $INDENTEDA and @att_names == 1)
7571100TFif $pretty == $NSGMLS
7574100TFif ($empty_tag_style eq $HTML and not $$elt{'first_child'} and not $elt->_extra_data_before_end_tag and $html_empty_elt{$gi})
7577100TF$empty_tag_style ? :
100TF$pretty == $INDENTEDA && @att_names == 1 ? :
100TF$pretty == $INDENTEDA && @att_names > 1 ? :
100TF$empty_tag_style eq $HTML && $html_empty_elt{$gi} ? :
100TF!$$elt{'empty'} || $elt->_extra_data_before_end_tag ? :
7586100TFif (substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:')
758850TFdefined $extra_data ? :
100TFunless ($pretty)
7594100TFif ($pretty == $RECORD1) { }
100TFelsif ($pretty == $RECORD2) { }
100TFelsif ($pretty == $NICE) { }
100TFelsif ($KEEP_TEXT_TAG_ON_ONE_LINE{$pretty}) { }
7596100TFif $level < 2
7597100TFif $level == 1
7607100TFunless (not $parent or $$parent{'contains_text'})
7609100TFif $parent and $$parent{'contains_text'} or $elt->contains_text
7615100TFunless (not $parent or $$parent{'contains_text'})
7619100TFif $parent and $$parent{'contains_text'} or $elt->contains_text
7623100TFif ($return or $indent)
762650TFif $xml_space_preserve
7627100TFif ($t and $$t{'twig_keep_spaces_in'})
762950TFif $$t{'twig_keep_spaces_in'}{$XML::Twig::index2gi[$$ancestor{'gi'}]}
7633100TFif ($extra_data)
7646100TFif $$elt{'gi'} < $XML::Twig::SPECIAL_GI or $$elt{'empty'} || 0 and not $elt->_extra_data_before_end_tag
7652100TFif (my $map = $$elt{'att'}{'#original_gi'})
7655100TFif ($output_text_filter)
7660100TFif (substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:')
7662100TFunless $pretty
7668100TFif ($pretty == $RECORD1) { }
100TFelsif ($pretty == $RECORD2) { }
100TFelsif ($pretty == $NICE) { }
100TFelsif ($KEEP_TEXT_TAG_ON_ONE_LINE{$pretty}) { }
7669100TFif $elt->level == 0
7673100TFunless ($elt->contains_text)
7681100TFif ($parent && !$$parent{'contains_text'} || !$parent and (not $$elt{'contains_text'} and $$elt{'has_flushed_child'} || $elt->_first_child))
7691100TFif ($parent && !$$parent{'contains_text'} || !$parent and (not $$elt{'contains_text'} and $$elt{'has_flushed_child'} || $elt->_first_child))
7701100TFif ($return or $indent)
770450TFif $xml_space_preserve
7705100TFif ($t and $$t{'twig_keep_spaces_in'})
770750TFif $$t{'twig_keep_spaces_in'}{$XML::Twig::index2gi[$$ancestor{'gi'}]}
771050TF$pretty == $INDENTEDCT ? :
50TFif ($return)
7715100TFunless $$elt{'parent'}
7723100TFif (my $original_prefix = $$map{$prefix})
7724100TFif ($original_prefix eq '#default') { }
7743100TF_is_fh($_[0]) ? :
7744100TFdefined $fh ? :
7745100TFdefined($pretty = shift @_) ? :
775650TFif ($output_filter or $pretty == $WRAPPED || $pretty == $INDENTEDC and not $xml_space_preserve) { }
77580TFif ($output_filter)
77600TFif ($pretty == $WRAPPED || $pretty == $INDENTEDC and not $xml_space_preserve)
7770100TFif defined $old_select
7771100TFif defined $old_pretty
777950TF$_[0] && isa($_[0], 'XML::Twig::Elt') ? :
7784100TF$_[0] && isa($_[0], 'XML::Twig::Elt') ? :
779250TF_is_fh($_[0]) ? :
779350TFdefined $fh ? :
7794100TFdefined($pretty = shift @_) ? :
779650TFif ($elt->inherit_att('xml:space') || '') eq 'preserve'
780250TFif defined $old_select
7803100TFif defined $old_pretty
7809100TFif ($$elt{'gi'} >= $XML::Twig::SPECIAL_GI) { }
781150TFif $preserve
7812100TFunless ($elt->_flushed)
782050TFunless ($$elt{'end_tag_flushed'})
782150TFif $preserve
7823100TFif (my $parent = $$elt{'parent'})
7827100TFif (exists $$elt{'pcdata'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'target'}) { }
50TFelsif (exists $$elt{'comment'}) { }
0TFelsif (exists $$elt{'ent'}) { }
782850TFif (my $parent = $$elt{'parent'})
783250TFif (my $parent = $$elt{'parent'})
783950TF$output_filter ? :
7847100TFif (@options and grep {lc $_ eq 'no_recurse';} @options)
7851100TFif ($$elt{'gi'} >= $XML::Twig::SPECIAL_GI) { }
100TFelsif (exists $$elt{'pcdata'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
50TFelsif (exists $$elt{'ent'}) { }
7858100TF$output_filter ? :
786150TF$output_filter ? :
7870100TFif $_->is_text or exists $$_{'ent'}
7881100TFif ($_[0] and isa($_[0], 'HASH'))
7883100TFif (defined $args{'PrettyPrint'})
7884100TFif (defined $args{'EmptyTags'})
7887100TFif ($elt->inherit_att('xml:space') || '') eq 'preserve'
7892100TFif ($output_filter)
7894100TFif ($pretty == $WRAPPED || $pretty == $INDENTEDC and not $xml_space_preserve)
7899100TFif (defined $old_pretty)
7900100TFif (defined $old_empty_tag_style)
7928100TFif ($$elt{'gi'} >= $XML::Twig::SPECIAL_GI) { }
7931100TFif $preserve
7933100TFunless $no_tag
7941100TFunless $no_tag
7942100TFif $preserve
7945100TFif $$elt{'extra_data'}
7946100TFif (exists $$elt{'pcdata'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'target'}) { }
100TFelsif (exists $$elt{'comment'}) { }
50TFelsif (exists $$elt{'ent'}) { }
794950TFif ($pretty >= $INDENTED and not $$elt{'parent'}{'contains_text'})
795250TFif ($pretty >= $INDENTED and not $$elt{'parent'}{'contains_text'})
7963100TFisa($_[0], 'HASH') ? :
7968100TFif (defined(my $string = $$elt{'pcdata'})) { }
7970100TFif ($elt->_extra_data_in_pcdata) { }
7974100TFif ($keep_encoding or $$elt{'asis'}) { }
7979100TFunless ($keep_encoding or $$elt{'asis'})
7988100TFunless $keep_encoding or $$elt{'asis'}
7991100TF$output_text_filter ? :
8025100TFunless (defined $cdata)
8026100TFif ($remove_cdata) { }
803850TFif ($_[0] and $_[0]{'escape_gt'} and not $replace =~ />/)
804050TFif (defined(my $string = $$elt{'att'}{$att})) { }
8049100TFif (not defined $string)
8050100TFunless ($keep_encoding)
8052100TFif ($do_not_escape_amp_in_atts) { }
8063100TF$output_text_filter ? :
8070100TFif ($expand_external_entities and $t = $ent->twig and $el = $t->entity_list and $ent_string = $$el{'entities'}{$ent->ent_name}{'val'}) { }
8084100TFif (@options and grep {lc $_ eq 'no_recurse';} @options)
8088100TFif (exists $$elt{'pcdata'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'target'}) { }
100TFelsif (exists $$elt{'comment'}) { }
100TFelsif (exists $$elt{'ent'}) { }
809850TFdefined $child_text ? :
8101100TFunless (defined $string)
810350TF$output_text_filter ? :
8107100TFif $_->is_text or exists $$_{'ent'}
8138100TFif ($keep_encoding) { }
8178100TFif ($$elt{'gi'} >= $XML::Twig::SPECIAL_GI) { }
8181100TFif ($data and my $start_element = $handler->can('start_element'))
8182100TFunless ($elt->_flushed)
8187100TFif (my $data = &$end_tag_data($elt) and my $end_element = $handler->can('end_element'))
8192100TFif (exists $$elt{'pcdata'} and my $characters = $handler->can('characters')) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'target'} and my $pi = $handler->can('processing_instruction')) { }
100TFelsif (exists $$elt{'comment'} and my $comment = $handler->can('comment')) { }
100TFelsif (exists $$elt{'ent'}) { }
819550TFif (my $start_cdata = $handler->can('start_cdata'))
819750TFif (my $characters = $handler->can('characters'))
819950TFif (my $end_cdata = $handler->can('end_cdata'))
820850TFif (my $se = $handler->can('skipped_entity')) { }
0TFelsif (my $characters = $handler->can('characters')) { }
82110TFif (defined $elt->ent_string) { }
8224100TFif substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:'
8228100TFunless substr($att, 0, 1) eq '#' and substr($att, 0, 9) ne '#default:'
8235100TFif substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:'
8244100TFif substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:'
8265100TFif substr($att, 0, 1) eq '#' and substr($att, 0, 9) ne '#default:'
8281100TFunless /^\{[^}]*\}xmlns/
100TFif (my $start_prefix_mapping = $handler->can('start_prefix_mapping') and my(@new_prefix_mappings) = grep({/^\{$XMLNS_URI\}/ unless /^\{[^}]*\}xmlns/;} keys %{$$data{'Attributes'};}))
8286100TFif ($prefix_string eq 'xmlns')
8300100TFif (my $end_prefix_mapping = $handler->can('end_prefix_mapping'))
8308100TFif substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 1) eq '#' and substr($XML::Twig::index2gi[$$elt{'gi'}], 0, 9) ne '#default:'
8316100TFif $child->is_text or exists $$child{'ent'}
8329100TFif ($XML::Twig::index2gi[$$elt{'gi'}] eq '#PCDATA') { }
100TFelsif ($XML::Twig::index2gi[$$elt{'gi'}] eq '#CDATA') { }
100TFelsif ($elt->contains_a_single('#PCDATA')) { }
8332100TFif ($option{'force_pcdata'}) { }
8361100TFunless defined $_[0]
8364100TFif (ref $_[0] eq 'HASH')
836850TFunless defined $_[0]
8372100TFif (not ref $_[0] and $_[0] eq '#EMPTY')
8377100TFif ($XML::Twig::index2gi[$$elt{'gi'}] eq '#PCDATA' || $elt->contains_a_single('#PCDATA') and @_ == 1 and not ref $_[0]) { }
100TFelsif ($XML::Twig::index2gi[$$elt{'gi'}] eq '#CDATA' and @_ == 1 and not ref $_[0]) { }
8394100TFif (ref $child and isa($child, 'XML::Twig::Elt')) { }
8400100TFif (my $pcdata = $$elt{'last_child'} and $$elt{'last_child'}->is_pcdata) { }
8430100TFif (defined $args[0] and isa($args[0], 'HASH'))
8450100TFif ($position eq 'before' or $position eq 'after' or $position eq 'first_child' or $position eq 'last_child') { }
8472100TFif ($$elt{'twig_current'})
8479100TFif (my $parent = $$elt{'parent'}) { }
848050TFif ($XML::Twig::weakrefs)
8481100TFif ($$parent{'first_child'} == $elt)
848250TFif ($XML::Twig::weakrefs)
100TFif ($$parent{'last_child'} == $elt)
848750TFif ($twig and $twig->root and $twig->root eq $elt)
8491100TFif (my $prev_sibling = $$elt{'prev_sibling'})
849250TFif ($XML::Twig::weakrefs)
8496100TFif (my $next_sibling = $$elt{'next_sibling'})
849850TFif ($XML::Twig::weakrefs)
850150TFif ($XML::Twig::weakrefs)
850350TFif ($XML::Twig::weakrefs)
850450TFif ($XML::Twig::weakrefs)
8508100TFif (defined $_[0] and isa($_[0], 'HASH'))
852050TFif ($$elt{'parent'})
852250TFif (my $parent = $$ref{'parent'})
852350TFif ($XML::Twig::weakrefs)
8524100TFif ($$parent{'first_child'} == $ref)
852550TFif ($XML::Twig::weakrefs)
100TFif ($$parent{'last_child'} == $ref)
8527100TFif (my $prev_sibling = $$ref{'prev_sibling'})
852850TFif ($XML::Twig::weakrefs)
8531100TFif (my $next_sibling = $$ref{'next_sibling'})
853350TFif ($XML::Twig::weakrefs)
853650TFif ($XML::Twig::weakrefs)
853750TFif ($XML::Twig::weakrefs)
8564100TF$option && $option eq 'asis' ? :
8565100TFif (exists $$elt{'pcdata'} and $asis && $$elt{'asis'} || !$asis && !$$elt{'asis'}) { }
100TFelsif ($$elt{'first_child'} and $$elt{'first_child'}->is_pcdata and $asis && $$elt{'first_child'}{'asis'} || !$asis && !$$elt{'first_child'}{'asis'}) { }
8579100TFif ($asis)
8587100TF$option && $option eq 'asis' ? :
8588100TFif (exists $$elt{'pcdata'} and $asis && $$elt{'asis'} || !$asis && !$$elt{'asis'}) { }
100TFelsif ($$elt{'last_child'} and $$elt{'last_child'}->is_pcdata and $asis && $$elt{'last_child'}{'asis'} || !$asis && !$$elt{'last_child'}{'asis'}) { }
8600100TFif ($asis)
8619100TFunless ($index == 1 and not $ancestor->next_sibling($gi))
864450TFisa($_[0], 'HASH') ? :
865450TFunless @to_wrap
8698100TFunless my $child = $elt->first_child($cond)
8740100TF$opt{'order'} eq 'reverse' ? :
8741100TF$opt{'type'} eq 'numeric' ? :
8743100TFif ($opt{'type'} eq 'numeric') { }
100TFelsif ($opt{'type'} eq 'alpha') { }
8756100TFif $opt{'order'} eq 'reverse'
8765100TFif ($a->cmp($b) == -1) { }
8770100TFif ($a->cmp($b) == 1) { }
8775100TFif $a->cmp($b) == -1
8781100TFunless $a->cmp($b) == 1
8787100TFif $a->cmp($b) == 1
8793100TFunless $a->cmp($b) == -1
8802100TFif $a == $b
8803100TFif $a->in($b)
8804100TFif $b->in($a)
8811100TFunless $a_pile[-1] == $b_pile[-1]
8826100TFif $a_prev == $b_next
8828100TFif $a_next == $b_prev
8830100TFif $b_prev == $a_next
8832100TFif $b_next == $a_prev
8839100TFdefined $$option{'atts'} ? :
8840100TFdefined $$option{'extra'} ? :
884150TFdefined $$option{'short_text'} ? :
8848100TFif ($elt->is_elt) { }
8852100TFif ($atts and my(@atts) = $elt->att_names)
8856100TFif ($extra)
8861100TFif (exists $$elt{'pcdata'}) { }
50TFelsif (exists $$elt{'ent'}) { }
100TFelsif (exists $$elt{'cdata'}) { }
100TFelsif (exists $$elt{'comment'}) { }
50TFelsif (exists $$elt{'target'}) { }
8871100TFif ($extra)
8879100TFif ($elt->extra_data)
888450TFif ($elt->_extra_data_in_pcdata)
889150TFif ($elt->_extra_data_before_end_tag)
8902100TFif (not $length or length $string < $length)