亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? element.pm

?? CCSM Research Tools: Community Atmosphere Model (CAM)
?? PM
?? 第 1 頁 / 共 2 頁
字號:
# ----------------------------------------------------------# 06Sep2001 Added to support tree-like iteration          JW# 04Nov2001 Changed to get_children (with alias)          JW# 05Nov2001 Fixed so that it actually works               JW# 06Nov2001 Added comments, optimizations and bug fixes   JW# ----------------------------------------------------------sub children;*children = \&get_children;sub get_children {	my $self = shift;	my @children = ();	# If we don't have any content, then we should return an emtpty 	# list right away -- we have no children.	return @children unless defined $self->{node}[2];	# We need to traverse the document tree and find our own node	# This will also load {children} and {parent} as well	$self->_find_self() unless defined $self->{self};	# Now that we know who we are (if this didn't fail) we can 	# iterate through the sub nodes (our child list) and make 	# XML::Lite::Elements objects for each child	if( defined $self->{children} ) {		my $i = 0;		my $node = $self->{children}[$i];		while( defined $node ) {			push @children, XML::Lite::Element->new( $self->{doc}, $node );			$i++ if (@$node == 4) && (defined $node->[2]); # Skip element's child list if it exists			$node = $self->{children}[++$i];		} # end while	} # end if		return @children;} # end get_children=item my $text = $element->get_text()Returns a scalar of the text within an element sans children elements.This effectively takes the content of the element and strips all XMLelements. All text is concatenated into a single string. White spaceis preserved. CDATA elements are included without the <![CDATA[ tags.Other entities are preserved.=cut# ----------------------------------------------------------# Date      Modification                              Author# ----------------------------------------------------------# 04Nov2001 Added function to get text                   JW# 06Nov2001 Added <.../> optimization                    JW# 06Nov2001 Included CDATA text recovery                 JW# ----------------------------------------------------------sub text;*text = \&get_text;sub get_text {	my $self = shift;	my $content = '';	# If we don't have any content, then we should return  	# $content right away -- we have no text	return $content unless defined $self->{node}[2];	# Otherwise get out content and children	my @children = $self->get_children;	my $orig_content = $self->get_content;		# Then remove the child elements from our content	my $start = 0;	foreach( @children ) {		my $end = $_->{node}[0] - $self->{node}[1] - 1;		$content .= substr( $orig_content, $start, $end - $start);		$start = ($_->{node}[3] || $_->{node}[1]) - $self->{node}[1];	} # end foreach	$content .= substr( $orig_content, $start ) if $start < length($orig_content);		# Remove the CDATA wrapper, preserving the content	$content =~ s/<!\[CDATA\[(.+?)]\]>/$1/g;		# Return the left-over text	return $content;} # end get_text############################                      ####   Private Methods    ####                      ############################# ----------------------------------------------------------# Sub: _parse_attrs## Args: (None)## Returns: True value on success, false on failure## Description: Pares the attributes in the element into a hash# ----------------------------------------------------------# Date      Modification                              Author# ----------------------------------------------------------# 08Apr2002 Allow null strings as valid values           BEE# 13Mar2002 Don't do anything if not defined             EBK# ----------------------------------------------------------sub _parse_attrs {	my $self = shift;		my $attrs = $self->{_attrs};       if ( defined($attrs) ) {		$attrs =~ s/^\s+//;		$attrs =~ s/\s+$//;		$self->{attrs} = {};		while( $attrs =~ s/^(\S+)\s*="([^"]*)"// )		#" For syntax highlighter		{			$self->{attrs}{$1} = $2;			$attrs =~ s/^\s+//;		} # end while       }		return 1;} # end _parse_atttrs# ----------------------------------------------------------# Sub: _find_self## Args: (None)## Returns: A reference to our node or undef on error## Description: Traverses the owner document's tree to find# the node that references the current element. Sets # $self-{self} as a side-effect. Even if this is already set,# _find_self will traverse again, so don't call unless needed.# ----------------------------------------------------------# Date      Modification                              Author# ----------------------------------------------------------# 06Nov2001 Added to support children() method            JW# ----------------------------------------------------------sub _find_self {	my $self = shift;		# We actually just call this recusively, so the first 	# argument can be a starting point to descend from	# but we don't doc that above	my $node = shift || $self->{doc}{tree};	return undef unless defined $node;	# Our owner XML::Lite document has a tree (list of lists) that	# tracks all elements in the document. Starting at the root	# of the tree, walk through each node until we find one with	# the same offsets as our $self->{node} has.	# Walk through the nodes in this node and compare to our selves	for( my $i = 0; $i < scalar(@$node) && defined $node->[$i]; $i++ ) {		# If this is our self, then we're done!		# NOTE: Since the list references are the same in the by-name hash		# and tree objects, we can just do a reference compare here		# if objects are create with non-factory methods then we need to 		# use a _compare_lists call.# 		if( _compare_lists( $node->[$i], $self->{node} ) ) {  		if( $node->[$i] eq $self->{node} ) { 			$self->{parent} = $node;			$self->{self} = $node->[$i];			# If this list has children, then add a pointer to that list			$self->{children} = $node->[$i + 1] if (scalar(@{$node->[$i]}) == 4) && (defined $node->[$i][2]); 			last; 		} # end if		# If this is a node with content (start and end tag) then check children		if( (scalar(@{$node->[$i]}) == 4) && (defined $node->[$i][2]) ) {			# This is a node with content (start and end tag)			# So look at the child node list that follows and see what it's got 			$i++;			last if defined $self->_find_self( $node->[$i] );		} # end for		# For efficiency, we only need look at nodes that start before		# our node does              if ( defined($node->[$i][0]) && defined($self->{node}->[3]) ) {			last if $node->[$i][0] > $self->{node}->[3];              }	} # end for	# And return it	return $self->{self};} # end _find_self# ----------------------------------------------------------# Sub: _compare_lists## Args: $list_ref_1, $list_ref_2## Returns: True if the same elements, false otherwise## Description: Compare the contents of two lists and returns# whether they are the same# NOTE: This is a CLASS METHOD (or sub)# ----------------------------------------------------------# Date      Modification                              Author# ----------------------------------------------------------# 06Nov2001 Added to support node lookups                 JW# ----------------------------------------------------------sub _compare_lists {	my( $rA, $rB ) = @_;		# Lists are not equal unless same size	return 0 unless scalar(@$rA) == scalar(@$rB);		# Now compare item by item.	my $i;	for( $i = 0; $i < scalar(@$rA); $i++ ) {		return 0 unless $rA->[$i] eq $rB->[$i];	} # end for		return 1;} # end _compare_lists# module clean-up code here (global destructor)END { }1;  # so the require or use succeeds=back=head1 BUGS(None known)=head1 VERSION0.11=head1 AUTHORJeremy Wadsack for Wadsack-Allen Digital Group (dgsupport@wadsack-allen.com)=head1 COPYRIGHTCopyright 2001 Wadsack-Allen. All rights reserved.This library is free software; you can redistribute it and/ormodify it under the same terms as Perl itself.=cut

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合色噜噜狠狠| 欧美高清性hdvideosex| 亚洲成人手机在线| 国产精品午夜免费| 欧美成人精品1314www| 欧美性大战久久| 激情文学综合网| 奇米一区二区三区av| 亚洲一区二区三区精品在线| 中文字幕在线观看一区| 久久久精品欧美丰满| 欧美成人性福生活免费看| 91精品国产综合久久香蕉的特点| 色综合天天综合狠狠| 9i看片成人免费高清| 99久久国产免费看| 97se亚洲国产综合在线| 91在线观看污| 日本久久一区二区| 色噜噜久久综合| 欧美日韩电影在线| 欧美国产1区2区| 欧美精品一区二区久久婷婷| a级高清视频欧美日韩| 日本不卡免费在线视频| 国产婷婷色一区二区三区在线| 99久久99久久精品国产片果冻| 秋霞电影一区二区| 亚洲成人先锋电影| 日韩va欧美va亚洲va久久| 亚洲mv在线观看| 日韩黄色在线观看| 美女视频第一区二区三区免费观看网站| 午夜av区久久| 捆绑调教一区二区三区| 国产美女一区二区三区| 99v久久综合狠狠综合久久| 欧美日韩精品欧美日韩精品一综合| 欧美一卡2卡3卡4卡| 久久精品网站免费观看| 亚洲靠逼com| 国内外成人在线| 在线看一区二区| 国产三级欧美三级| 性久久久久久久久| 成人h动漫精品一区二| 欧美一区二视频| 樱桃国产成人精品视频| 国产麻豆精品在线观看| 欧美在线免费观看亚洲| 国产三级一区二区| 日韩成人av影视| 欧美伊人久久大香线蕉综合69 | 国产福利不卡视频| 欧美性大战久久久| 日韩码欧中文字| 91丨国产丨九色丨pron| 亚洲成av人片观看| youjizz国产精品| 日韩免费一区二区三区在线播放| 一区二区三区免费网站| 99精品视频一区二区三区| 久久美女艺术照精彩视频福利播放| 亚洲第一电影网| 欧美色综合网站| 一区二区三区毛片| 欧美亚洲国产bt| 亚洲一区二区三区在线看| 日本精品裸体写真集在线观看 | 国产香蕉久久精品综合网| 日韩不卡一二三区| 欧美人狂配大交3d怪物一区| 国产欧美一区视频| 99视频精品免费视频| 精品国产凹凸成av人导航| 激情成人综合网| 欧美激情一区二区三区在线| 成人一二三区视频| 亚洲人成7777| 欧美精品一卡两卡| 久久成人麻豆午夜电影| 久久婷婷久久一区二区三区| eeuss影院一区二区三区| 最好看的中文字幕久久| 欧美亚洲一区三区| 美日韩一级片在线观看| 欧美国产97人人爽人人喊| 日本韩国一区二区三区| 久久99久国产精品黄毛片色诱| 日韩欧美在线123| 国产一区二区伦理| 亚洲精品视频在线| 欧美成人精品3d动漫h| 成人v精品蜜桃久久一区| 亚洲1区2区3区视频| 久久综合久久久久88| 一本久久精品一区二区| 久久精品国产**网站演员| 国产精品视频yy9299一区| 91精选在线观看| jlzzjlzz欧美大全| 久久99国产精品麻豆| 亚洲激情av在线| 国产亚洲美州欧州综合国| 欧美情侣在线播放| 亚洲线精品一区二区三区八戒| 国产欧美日韩亚州综合| 欧美日免费三级在线| 国产福利一区二区三区视频| 午夜一区二区三区在线观看| 中文字幕欧美激情| 欧美精品一区二区三| 在线91免费看| 欧美日韩中文字幕一区| 91麻豆成人久久精品二区三区| 风间由美性色一区二区三区| 青青草97国产精品免费观看无弹窗版| 亚洲免费av高清| 曰韩精品一区二区| 亚洲综合色在线| 亚洲第一电影网| 爽爽淫人综合网网站| 久久综合色天天久久综合图片| 91同城在线观看| 免费高清在线一区| 不卡的av电影| 日韩精品一区二区在线观看| 国产日本亚洲高清| 美女www一区二区| 97久久精品人人澡人人爽| 国产精品一区二区不卡| 91色综合久久久久婷婷| 欧美一区二区在线看| 亚洲美腿欧美偷拍| 成人妖精视频yjsp地址| 91啪亚洲精品| 欧美精品一区二区三区蜜臀| 亚洲一区二区精品久久av| 成人激情小说网站| 久久嫩草精品久久久精品| 亚洲成av人片在线观看| 一本久道中文字幕精品亚洲嫩 | 色综合欧美在线| 国产精品嫩草影院com| 国产成人一级电影| 精品成人一区二区三区四区| 日韩av高清在线观看| 欧美乱妇23p| 性久久久久久久| 这里只有精品电影| 日韩电影在线看| 日韩亚洲电影在线| 麻豆精品一二三| 久久夜色精品国产噜噜av| 国产一区不卡视频| 日本一区二区视频在线| 成人污污视频在线观看| 国产精品久久久久aaaa| 99久久精品免费精品国产| 中文字幕一区二区三区在线播放| 波多野结衣亚洲| 亚洲免费观看在线视频| 欧美日韩三级在线| 日韩电影在线一区二区| 久久久久久久久久久99999| 国产一区免费电影| 亚洲丝袜制服诱惑| 精品视频在线视频| 国内精品视频一区二区三区八戒| 精品av久久707| av在线不卡免费看| 日产国产高清一区二区三区| 欧美mv日韩mv| 91在线视频18| 日本成人在线不卡视频| 中文字幕av免费专区久久| 在线看不卡av| 国产高清一区日本| 一区二区高清视频在线观看| 久久综合一区二区| 日本乱人伦aⅴ精品| 老鸭窝一区二区久久精品| 亚洲欧美日韩久久| 欧美一区二区久久久| 国产高清精品在线| 日韩影院精彩在线| 国产欧美日韩久久| 91精品麻豆日日躁夜夜躁| 97久久精品人人做人人爽| 香蕉久久夜色精品国产使用方法| 久久亚洲综合色一区二区三区| 99vv1com这只有精品| 久久91精品国产91久久小草| 一区二区三区在线免费| 久久久久国产精品麻豆| 欧美一区二区三区小说| 一本大道av伊人久久综合| 国内精品不卡在线| 亚洲国产综合人成综合网站| 久久精品一级爱片|