| line | % | coverage | condition |
| 126 | 33 | | eval 'require Scalar::Util' and defined \&Scalar::Util::weaken |
| 432 | 100 | | $args{'EltClass'} || 'XML::Twig::Elt' |
| 463 | 20 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not $args{'NoLWP'} and not _use('URI') and not _use('URI::File') and not _use('LWP') |
| 486 | 100 | | $$self{'twig_roots'} or $args{'ForceEndTagHandlersUsage'} |
| 538 | 50 | | $args{'Comments'} ||= $COMMENTS_DEFAULT |
| 545 | 50 | | $args{'Pi'} ||= $PI_DEFAULT |
| 556 | 100 | | $args{'ParseStartTag'} || \&_parse_start_tag |
| 652 | 67 | | not ref $t or not isa($t, 'XML::Twig') |
| 657 | 17 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 |
| $] >= 5.008 and ${^UNICODE} and ${^UNICODE} & 24 and isa($_[0], 'GLOB') and -p $_[0] |
| 675 | 67 | | isa($returned, 'XML::Twig') and $$returned{'twig_finish_now'} |
| 706 | 33 | | $$t{'twig_keep_encoding'} or $] < 5.006 |
| 741 | 0 | | $t->_reset_twig && 0 |
| 748 | 0 | | $t->_reset_twig && 0 |
| 755 | 0 | | $t->_reset_twig && 0 |
| 820 | 67 | | $parser ||= 'XML::Parser'->new |
| 864 | 100 | | not _check_xml($xml) and $max_tries-- |
| 876 | 0 | | $encoding eq 'shift-jis' and $xml_parser_encoding{'x-sjis-jisx0221'} |
| 0 | | $encoding eq 'euc-jp' and $xml_parser_encoding{'x-euc-jp-jisx0221'} |
| 922 | 20 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $$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 |
| 936 | 0 | | _use('Unicode::Map8') and _use('Unicode::String') |
| 967 | 0 | | $3 and $block_tag{$3} |
| 33 | | $2 and $block_tag{$2} |
| 1010 | 100 | | $version ||= 0 |
| 1045 | 67 | | defined $base and not $filename =~ m[^(?:[\\/]|\w+:)] |
| 1093 | 50 | | $agent ||= 'LWP::UserAgent'->new |
| 1106 | 0 | | $agent ||= 'LWP::UserAgent'->new |
| 1143 | 33 | | @saved_default_handler and defined $saved_default_handler[1] |
| 1157 | 67 | | $$p{'twig'}{'twig_doctype'}{'has_internal'} and not $expat_1_95_2 |
| 1172 | 67 | | isa($_[0], 'GLOB') or isa($_[0], 'IO::Scalar') |
| 1177 | 100 | | $$handlers{'handlers'}{'string'}{$path} || undef |
| 1179 | 100 | | A | B | C | D | E | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 0 | 1 | X | 1 | | 0 | 0 | 1 | X | X | 1 | | 0 | 1 | X | X | X | 1 | | 1 | X | X | X | X | 1 |
| _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) |
| 1226 | 50 | | $$a{'score'}{'steps'} || 0 |
| 75 | | ($$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) |
| 50 | | $$b{'score'}{'predicates'} || 0 |
| 50 | | $$a{'score'}{'predicates'} || 0 |
| 50 | | $$b{'score'}{'tests'} || 0 |
| 50 | | $$a{'score'}{'tests'} || 0 |
| 75 | | ($$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) |
| 50 | | $$a{'score'}{'type'} || 0 |
| 50 | | $$b{'score'}{'type'} || 0 |
| 100 | | $$b{'score'}{'anchored'} || 0 |
| 100 | | $$a{'score'}{'anchored'} || 0 |
| 50 | | $$b{'score'}{'steps'} || 0 |
| 1242 | 100 | | $1 || '' |
| 1257 | 67 | | !($$stack[-1]{'_tag'} =~ /^#/) && scalar @$stack == $level + 1 |
| 1294 | 33 | | $DEBUG_HANDLER and $path_to_check =~ /\S/ |
| 1316 | 100 | | defined $last_token_is_sep and not $last_token_is_sep |
| 1326 | 33 | | $DEBUG_HANDLER >= 1 && "warn q{checking path '${xpath_to_display}'\n};" |
| 1343 | 100 | | $tag ||= '*' |
| 1357 | 67 | | $last_tag ||= $tag |
| 1429 | 80 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $func or $string_regexp or $string_test_num or $string_test_alpha |
| 1431 | 33 | | $string_test_num and $string_test_num =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_COMP)\s*($REG_NUMBER)/ |
| 100 | | $num_test and $num_test eq '=' |
| 67 | | $func and $func =~ /^string/ |
| 67 | | $string_regexp and $string_regexp =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_MATCH)\s*($REG_REGEXP)/ |
| 67 | | $string_test_alpha and $string_test_alpha =~ /string\(\s*($REG_NAME)\s*\)\s*($REG_COMP)\s*($REG_STRING)/ |
| 1490 | 67 | | shift @_ || return |
| 1500 | 100 | | $$t{'twig_handlers'} ||= {} |
| 1506 | 100 | | $$t{'twig_handlers'} || undef |
| 1514 | 50 | | $$t{'twig_starttag_handlers'} ||= {} |
| 1520 | 100 | | $$t{'twig_starttag_handlers'} || undef |
| 1528 | 50 | | $$t{'twig_ignore_elts_handlers'} ||= {} |
| 1542 | 100 | | $$t{'twig_endtag_handlers'} ||= {} |
| 1564 | 100 | | $$t{'twig_handlers'} ||= {} |
| 1611 | 50 | | $t->_reset_twig && 0 |
| 1641 | 75 | | $$t{'twig_stored_spaces'} or $option{'force'} or $$t{'twig_preserve_space'} |
| 1649 | 80 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $$t{'twig_space_policy'}{$current_gi} or not $$t{'twig_stored_spaces'} =~ /\n/ or $option{'force'} or $$t{'twig_preserve_space'} |
| 1773 | 67 | | $$elt{'att'}{'xml:space'} and $$elt{'att'}{'xml:space'} eq 'preserve' |
| 1783 | 100 | | not $$t{'twig_keep_original_prefix'} and my $mapped_prefix = $$t{'twig_map_xmlns'}{$uri} |
| 1839 | 67 | | $$t{'twig_map_xmlns'}{$$ns_info{'uri'}} || $$ns_info{'prefix'} |
| 1859 | 75 | | not exists $value{$att} and exists $$attlist{$att}{'default'} and $$attlist{$att}{'default'} ne '#IMPLIED' |
| 1952 | 100 | | $$t{'twig_root_depth'} and $p->depth == $$t{'twig_root_depth'} |
| 1965 | 67 | | $$elt{'att'}{'xml:space'} and $$elt{'att'}{'xml:space'} eq 'preserve' |
| 2010 | 100 | | not @found_handlers and defined $$handlers{'handlers'}{$DEFAULT} |
| 2013 | 100 | | @found_handlers and $$t{'twig_do_not_chain_handlers'} |
| 2027 | 100 | | not $uri and not $name =~ /^xml/ |
| 2132 | 67 | | $t->_space_policy($XML::Twig::index2gi[$$twig_current{'gi'}]) and $$t{'twig_stored_spaces'} |
| 2189 | 67 | | $$t{'twig_handlers'}{'pi_handlers'} || return |
| 2200 | 100 | | defined $data && $data ne '' |
| 2213 | 100 | | not defined $comment or $comment eq '' |
| 2290 | 67 | | $t->_space_policy($XML::Twig::index2gi[$$twig_current{'gi'}]) and $$t{'twig_stored_spaces'} |
| 2315 | 67 | | $$t{$type} ||= $$t{'twig_elt_class'}->new('#CPI') |
| 2380 | 100 | | $$t{'twig_keep_spaces_in'} and $$t{'twig_keep_spaces_in'}{$gi} |
| 2382 | 100 | | $$t{'twig_discard_spaces_in'} and $$t{'twig_discard_spaces_in'}{$gi} |
| 2426 | 33 | | defined $$ent{'val'} and not $ent_decl =~ /["']/ |
| 2465 | 100 | | $level || 0 |
| 2474 | 50 | | $$t{'twig_xmldecl'} ||= {} |
| 2485 | 50 | | $$t{'twig_doctype'} ||= {} |
| 2500 | 0 | | $internal ||= '' |
| 2507 | 100 | | $$t{'twig_read_external_dtd'} and $sysid |
| 2512 | 100 | | $$t{'ErrorContext'} || 0 |
| 2527 | 100 | | $$t{'twig_dtd'} ||= {} |
| 2528 | 100 | | $$t{'twig_dtd'}{'model'} ||= {} |
| 2529 | 100 | | $$t{'twig_dtd'}{'elt_list'} ||= [] |
| 2532 | 33 | | $parser_version > 2.27 and $$t{'twig_doctype'}{'internal'} =~ /(^|>)\s*$/ |
| 2550 | 50 | | $$t{'twig_dtd'} ||= {} |
| 2551 | 100 | | $$t{'twig_dtd'}{$gi} ||= {} |
| 2553 | 33 | | $parser_version > 2.27 and $$t{'twig_doctype'}{'internal'} =~ /(^|>)\s*$/ |
| 2590 | 33 | | $p->original_string =~ /^</ and $p->original_string =~ />$/ |
| 2658 | 100 | | $$t{'twig_xmldecl'} or $$t{'output_encoding'} |
| 2707 | 50 | | $$doctype{'name'} || '' |
| 2713 | 100 | | $$doctype{'sysid'} || '' |
| 2719 | 100 | | $$doctype{'pub'} || '' |
| 2725 | 100 | | $$doctype{'internal'} || '' |
| 2765 | 33 | | $$t{'twig_output_fh'} || select || \*STDOUT |
| 2782 | 100 | | $args{'UpdateDTD'} || '' |
| 2790 | 100 | | $$doctype{'sysid'} and not $$doctype{'pub'} |
| 2795 | 33 | | not $$t{'twig_dtd'} and keys %{$t->entity_list;} |
| 2803 | 100 | | $t->entity_list->text || '' |
| 2841 | 67 | | $$t{'leading_cpi'} || return('') |
| 2847 | 67 | | $$t{'trailing_cpi'} || return('') |
| 2853 | 100 | | $$t{'trailing_cpi_text'} || '' |
| 2859 | 33 | | $] > 5.006 and not $$t{'twig_keep_encoding'} |
| 2942 | 67 | | $last_elt and $last_elt->in($elt) |
| 2956 | 67 | | $last_elt and $elt == $last_elt |
| 3044 | 67 | | $last_elt and $last_elt->in($elt) |
| 3052 | 67 | | $last_elt and $elt == $last_elt |
| 3084 | 100 | | $elt_class->can($att) and not $accessor{$att} |
| 3104 | 33 | | $t->root || return(undef) |
| 3111 | 33 | | $t->root || return(undef) |
| 3136 | 100 | | @unique and $unique[-1] == $current |
| 3167 | 100 | | $cond && !$root->passes($cond) |
| 3329 | 67 | | not $input_filter or isa($input_filter, 'CODE') |
| 3389 | 67 | | $$t{'twig_root'} and isa($$t{'twig_root'}, 'XML::Twig') |
| 3430 | 25 | | $expat_1_95_2 and $p->recognized_string eq '[' and not $$p{'twig'}{'expat_1_95_2_seen_bracket'} |
| 3483 | 67 | | $sysid and not $pubid |
| 3485 | 67 | | $internal and not $expat_1_95_2 |
| 3486 | 67 | | $internal or $expat_1_95_2 |
| 3503 | 67 | | $sysid and not $pubid |
| 3506 | 67 | | $internal or $expat_1_95_2 |
| 3537 | 67 | | $$t{'twig_output_fh'} || select || \*STDOUT |
| 3576 | 75 | | $tag and !@handlers || $last_handler_res |
| 3594 | 67 | | $$t{'twig_output_fh'} || select || \*STDOUT |
| 3601 | 67 | | &$handler($t, $gi) || last |
| 3628 | 67 | | $$t{'twig_output_fh'} || select || \*STDOUT |
| 3630 | 67 | | $$t{'twig_handlers'}{'pi_handlers'}{$target} || $$t{'twig_handlers'}{'pi_handlers'}{''} |
| 3695 | 33 | | &$handler($t, $gi) || last |
| 3708 | 100 | | $elt && isa($elt, 'XML::Twig::Elt') |
| 3714 | 100 | | A | B | C | D | dec |
|---|
| 0 | 0 | X | 0 | 0 | | 0 | 0 | X | 1 | 1 | | 0 | 1 | 0 | 0 | 0 | | 0 | 1 | 0 | 1 | 1 | | 0 | 1 | 1 | X | 1 | | 1 | X | X | X | 1 |
| $elt == $current or $$current{'last_child'} and $elt == $$current{'last_child'} or $current->in($elt) |
| 3721 | 50 | | shift @_ || 1 |
| 3741 | 67 | | $$elt_in_stack{'_elt'} and $elt == $$elt_in_stack{'_elt'} |
| 3752 | 100 | | $output_fh and not $$t{'twig_output_fh_selected'} |
| 3777 | 50 | | $$t{'twig_xmldecl'} ||= {} |
| 3788 | 100 | | $t->output_filter || '' |
| 3790 | 71 | | A | B | C | D | dec |
|---|
| 0 | X | 0 | 0 | 0 | | 0 | X | 0 | 1 | 1 | | 0 | X | 1 | X | 1 | | 1 | 0 | 0 | 0 | 0 | | 1 | 0 | 0 | 1 | 1 | | 1 | 0 | 1 | X | 1 | | 1 | 1 | X | X | 1 |
| $encoding and not $encoding =~ /^utf-?8$/i or $$t{'twig_keep_encoding'} or $output_filter |
| 3791 | 100 | | $encoding || '' |
| 3801 | 50 | | $$t{'twig_xmldecl'} ||= {} |
| 3810 | 50 | | $$t{'twig_xmldecl'} ||= {} |
| 3880 | 67 | | $last_elt and $last_elt->in($elt) |
| 3897 | 67 | | $last_elt and $elt == $last_elt |
| 3947 | 0 | | _use('Unicode::Map8') and _use('Unicode::String') |
| 3960 | 67 | | $_[1] || $_[0] |
| 3961 | 0 | | _use('Unicode::Map8') and _use('Unicode::String') |
| 4134 | 67 | | $ents_to_add and %$ents_to_add |
| 4208 | 33 | | ref $class || $class |
| 4256 | 75 | | defined $$ent{'val'} and not defined $$ent{'sysid'} and not defined $$ent{'pubid'} |
| 4369 | 33 | | eval 'require Scalar::Util' and defined &Scalar::Util::weaken |
| 4384 | 67 | | ref $class || $class |
| 4397 | 100 | | $atts and defined $$atts{'#CDATA'} |
| 4538 | 100 | | $DEFAULT_NS{$prefix} || $elt->_inherit_att_through_cut($ns_att) || '' |
| 4549 | 0 | | not $missing_prefix{$prefix} and not $elt->namespace |
| 4589 | 0 | | $elt->_ns_prefix and $elt->namespace eq $uri |
| 4634 | 33 | | exists $$elt{'ent'} || $$elt{'ent_name'} |
| 4640 | 100 | | exists $$elt{'pcdata'} || exists $$elt{'cdata'} |
| 4644 | 100 | | $_[0]{'empty'} || 0 |
| 4650 | 50 | | $_[0]{'empty'} or 0 |
| 4679 | 33 | | $elt->twig || return |
| 4702 | 100 | | $_[0]{'extra_data_before_end_tag'} || '' |
| 4734 | 100 | | _match_extra_data_words($elt, $initial, $modified) or _match_extra_data_chars($elt, $initial, $modified) |
| 4770 | 33 | | shift @$positions || $length + 1 |
| 4790 | 33 | | shift @$positions || $length + 1 |
| 4811 | 100 | | @$long and $s_word ne $l_word |
| 4815 | 100 | | not @$long and $s_word ne $l_word |
| 4844 | 100 | | $_[0]{'extra_data'} || '' |
| 4876 | 33 | | defined $data and $data ne '' |
| 4934 | 100 | | @children || 1 |
| 4954 | 0 | | $$elt{'parent'} || $elt->former_parent |
| 0 | | $$elt{'parent'} or $elt->former_parent |
| 5035 | 100 | | $gi and $gi ne '*' |
| 5047 | 100 | | $tag && $tag ne '*' |
| 5075 | 33 | | $string_test and $string_test =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*([<>]=?)\s*($REG_VALUE)/ |
| 67 | | $num_test and $num_test eq '=' |
| 67 | | $func and $func =~ /^(?:string|text)/ |
| 67 | | $string_regexp and $string_regexp =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*($REG_MATCH)\s*($REG_REGEXP)/ |
| 67 | | $string_eq and $string_eq =~ /(?:string|text)\(\s*($REG_NAME)\s*\)\s*(!?=)\s*($REG_VALUE)/ |
| 5119 | 67 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5131 | 67 | | shift @_ || return($$elt{'parent'}) |
| 5132 | 67 | | $$elt{'parent'} || return |
| 67 | | not $elt or $elt->passes($cond) |
| 5143 | 67 | | shift @_ || return($$elt{'first_child'}) |
| 5145 | 67 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5146 | 100 | | $child and not &$test_cond($child) |
| 5186 | 67 | | shift @_ || return($$elt{'last_child'}) |
| 5187 | 67 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5189 | 100 | | $child and not &$test_cond($child) |
| 5202 | 67 | | shift @_ || return($$elt{'prev_sibling'}) |
| 5203 | 67 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5205 | 100 | | $sibling and not &$test_cond($sibling) |
| 5214 | 67 | | shift @_ || return($$elt{'next_sibling'}) |
| 5215 | 33 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5217 | 100 | | $sibling and not &$test_cond($sibling) |
| 5247 | 67 | | $elt->tag eq 'span' and $elt->class |
| 5253 | 67 | | $elt->tag eq 'div' and $elt->class |
| 5271 | 100 | | $_[0] || '' |
| 5285 | 50 | | $_[0] and ref $_[0] and not $_[1] |
| 5347 | 67 | | $elt->twig || $elt |
| 5368 | 33 | | $_[0] && isa($_[0], 'CODE') |
| 5383 | 67 | | shift @_ || $elt->twig |
| 5494 | 100 | | defined $$elt{'att'}{$att} and !%tags || $tags{$XML::Twig::index2gi[$$elt{'gi'}]} |
| 5508 | 67 | | $$elt{'parent'} || $elt->former_parent |
| 50 | | defined $$elt{'att'}{$att} and !%tags || $tags{$XML::Twig::index2gi[$$elt{'gi'}]} |
| 5542 | 100 | | defined $_[0] and isa($_[0], 'XML::Twig::Elt') |
| 5550 | 67 | | $cond_cache{$cond} ||= _install_cond($cond) |
| 5554 | 89 | | A | B | C | D | E | F | dec |
|---|
| 0 | 0 | 0 | X | 0 | X | 0 | | 0 | 0 | 0 | X | 1 | 0 | 0 | | 0 | 0 | 0 | X | 1 | 1 | 1 | | 0 | 0 | 1 | 0 | 0 | X | 0 | | 0 | 0 | 1 | 0 | 1 | 0 | 0 | | 0 | 0 | 1 | 0 | 1 | 1 | 1 | | 0 | 0 | 1 | 1 | X | X | 1 | | 0 | 1 | X | X | X | X | 1 | | 1 | X | X | X | X | X | 1 |
| not defined $elt or not defined $cond or defined $ind and $$elt{'gi'} eq $ind or defined $test_cond and &$test_cond($elt) |
| 5561 | 100 | | $subtree_root and $elt == $subtree_root |
| 5569 | 100 | | $subtree_root and $elt == $subtree_root |
| 5574 | 100 | | $subtree_root and $subtree_root == $next_elt |
| 5575 | 67 | | $$next_elt{'parent'} || return(undef) |
| 5577 | 100 | | $subtree_root and $subtree_root == $next_elt |
| 5598 | 100 | | not $cond or $last_descendant->matches($cond) |
| 5619 | 100 | | defined $_[0] and isa($_[0], 'XML::Twig::Elt') |
| 5633 | 67 | | $$elt{'parent'} || return(undef) |
| 5642 | 100 | | $elt and not $$elt{'next_sibling'} |
| 5649 | 67 | | $elt->_following_elt || return(undef) |
| 5650 | 67 | | not $cond or $elt->matches($cond) |
| 5670 | 100 | | $elt and not $$elt{'prev_sibling'} |
| 5677 | 67 | | $elt->_preceding_elt || return(undef) |
| 5678 | 67 | | not $cond or $elt->matches($cond) |
| 5704 | 67 | | shift @_ || return(undef) |
| 5706 | 67 | | $elt->next_elt(@_) || return(undef) |
| 5894 | 50 | | shift @_ || '' |
| 5895 | 100 | | not $cond or $elt->matches($cond) |
| 5937 | 33 | | $$elt{'parent'} || last |
| 5940 | 33 | | $$next_elt{'parent'} || last MAIN |
| 5945 | 33 | | $next_elt || last MAIN |
| 5961 | 100 | | not $cond or defined($ind = $XML::Twig::gi2index{$cond}) |
| 5973 | 33 | | $subtree_root and $elt == $subtree_root |
| 5980 | 67 | | $subtree_root and $elt == $subtree_root |
| 5983 | 33 | | $$elt{'parent'} || last |
| 5985 | 67 | | $subtree_root and $subtree_root == $next_elt |
| 5986 | 33 | | $$next_elt{'parent'} || last |
| 5988 | 67 | | $subtree_root and $subtree_root == $next_elt |
| 5991 | 33 | | $next_elt || last |
| 5992 | 100 | | not $cond or $$elt{'gi'} eq $ind |
| 6060 | 100 | | $_[0] and not $elt->matches(@_) |
| 6108 | 100 | | $xpath_exp and $xpath_exp =~ s[^\s*(/?)
# the xxx=~/regexp/ is a pain as it includes /
(\s*(?:(?:($REG_AXIS)::)?(\*|$REG_NAME|\.\.|\.)\s*)?($REG_PREDICATE_ALT*)
)
(/|$)][]ox |
| 6130 | 100 | | not $gi or $gi eq '*' |
| 6134 | 100 | | $predicates and $predicates =~ /^\s*\[\s*last\s*\(\s*\)\s*\]\s*$/ |
| 100 | | $predicates and $predicates =~ /^\s*\[\s*((-\s*)?\d+)\s*\]\s*$/ |
| 6176 | 100 | | not $syntax_error and $pred |
| 6227 | 50 | | $XML::Twig::XPath::VERSION or 0 |
| 6244 | 100 | | $xpath{$xpath_exp} ||= _install_xpath($xpath_exp) |
| 6304 | 100 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $prev_sibling and $next_sibling and $prev_sibling->is_text and $XML::Twig::index2gi[$$prev_sibling{'gi'}] eq $XML::Twig::index2gi[$$next_sibling{'gi'}] |
| 6374 | 100 | | $prev_sibling and $prev_sibling->is_text and $XML::Twig::index2gi[$$first_child{'gi'}] eq $XML::Twig::index2gi[$$prev_sibling{'gi'}] |
| 6376 | 100 | | $next_sibling and $next_sibling->is_text and $XML::Twig::index2gi[$$last_child{'gi'}] eq $XML::Twig::index2gi[$$next_sibling{'gi'}] |
| 6380 | 67 | | $$elt{'parent'}{'twig_current'} and $$elt{'last_child'}->is_text |
| 6404 | 100 | | $$elt{'first_child'} || $$elt{'next_sibling'} |
| 6408 | 100 | | $target->extra_data || '' |
| 6422 | 100 | | $target->extra_data || '' |
| 6472 | 100 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not $$ref{'parent'} and $pos =~ /^(before|after)$/ and not exists $$elt{'target'} and not exists $$elt{'comment'} |
| 6481 | 67 | | my $ids = $$elt{'twig_id_list'} and my $t = $ref->twig |
| 6482 | 50 | | $$t{'twig_id_list'} ||= {} |
| 6496 | 100 | | exists $$elt{'comment'} or exists $$elt{'target'} |
| 6526 | 100 | | exists $$elt{'comment'} or exists $$elt{'target'} |
| 6616 | 67 | | $options{'normalise_space'} ||= $options{'normalize_space'} || 0 |
| 6618 | 100 | | $options{'content_key'} ||= 'content' |
| 6627 | 100 | | $options{'forcearray'} ||= 0 |
| 6634 | 100 | | $options{'keyattr'} ||= ['name', 'key', 'id'] |
| 6638 | 50 | | $prefix ||= '' |
| 6647 | 100 | | $prefix ||= '' |