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

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

?? encoding.pm

?? source of perl for linux application,
?? PM
字號:
package Encode::Encoding;# Base class for classes which implement encodingsuse strict;use warnings;our $VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };require Encode;sub DEBUG { 0 }sub Define {    my $obj       = shift;    my $canonical = shift;    $obj = bless { Name => $canonical }, $obj unless ref $obj;    # warn "$canonical => $obj\n";    Encode::define_encoding( $obj, $canonical, @_ );}sub name { return shift->{'Name'} }sub mime_name{    require Encode::MIME::Name;    return Encode::MIME::Name::get_mime_name(shift->name);}# sub renew { return $_[0] }sub renew {    my $self = shift;    my $clone = bless {%$self} => ref($self);    $clone->{renewed}++;    # so the caller can see it    DEBUG and warn $clone->{renewed};    return $clone;}sub renewed { return $_[0]->{renewed} || 0 }*new_sequence = \&renew;sub needs_lines { 0 }sub perlio_ok {    eval { require PerlIO::encoding };    return $@ ? 0 : 1;}# (Temporary|legacy) methodssub toUnicode   { shift->decode(@_) }sub fromUnicode { shift->encode(@_) }## Needs to be overloaded or just croak#sub encode {    require Carp;    my $obj = shift;    my $class = ref($obj) ? ref($obj) : $obj;    Carp::croak( $class . "->encode() not defined!" );}sub decode {    require Carp;    my $obj = shift;    my $class = ref($obj) ? ref($obj) : $obj;    Carp::croak( $class . "->encode() not defined!" );}sub DESTROY { }1;__END__=head1 NAMEEncode::Encoding - Encode Implementation Base Class=head1 SYNOPSIS  package Encode::MyEncoding;  use base qw(Encode::Encoding);  __PACKAGE__->Define(qw(myCanonical myAlias));=head1 DESCRIPTIONAs mentioned in L<Encode>, encodings are (in the currentimplementation at least) defined as objects. The mapping of encodingname to object is via the C<%Encode::Encoding> hash.  Though you candirectly manipulate this hash, it is strongly encouraged to use thisbase class module and add encode() and decode() methods.=head2 Methods you should implementYou are strongly encouraged to implement methods below, at leasteither encode() or decode().=over 4=item -E<gt>encode($string [,$check])MUST return the octet sequence representing I<$string>. =over 2=item *If I<$check> is true, it SHOULD modify I<$string> in place to removethe converted part (i.e.  the whole string unless there is an error).If perlio_ok() is true, SHOULD becomes MUST.=item *If an error occurs, it SHOULD return the octet sequence for thefragment of string that has been converted and modify $string in-placeto remove the converted part leaving it starting with the problemfragment.  If perlio_ok() is true, SHOULD becomes MUST.=item *If I<$check> is is false then C<encode> MUST  make a "best effort" toconvert the string - for example, by using a replacement character.=back=item -E<gt>decode($octets [,$check])MUST return the string that I<$octets> represents. =over 2=item *If I<$check> is true, it SHOULD modify I<$octets> in place to removethe converted part (i.e.  the whole sequence unless there is anerror).  If perlio_ok() is true, SHOULD becomes MUST.=item *If an error occurs, it SHOULD return the fragment of string that hasbeen converted and modify $octets in-place to remove the convertedpart leaving it starting with the problem fragment.  If perlio_ok() istrue, SHOULD becomes MUST.=item *If I<$check> is false then C<decode> should make a "best effort" toconvert the string - for example by using Unicode's "\x{FFFD}" as areplacement character.=back=backIf you want your encoding to work with L<encoding> pragma, you shouldalso implement the method below.=over 4=item -E<gt>cat_decode($destination, $octets, $offset, $terminator [,$check])MUST decode I<$octets> with I<$offset> and concatenate it to I<$destination>.Decoding will terminate when $terminator (a string) appears in output.I<$offset> will be modified to the last $octets position at end of decode.Returns true if $terminator appears output, else returns false.=back=head2 Other methods defined in Encode::EncodingsYou do not have to override methods shown below unless you have to.=over 4=item -E<gt>namePredefined As:  sub name  { return shift->{'Name'} }MUST return the string representing the canonical name of the encoding.=item -E<gt>mime_namePredefined As:  sub mime_name{    require Encode::MIME::Name;    return Encode::MIME::Name::get_mime_name(shift->name);  }MUST return the string representing the IANA charset name of the encoding.=item -E<gt>renewPredefined As:  sub renew {    my $self = shift;    my $clone = bless { %$self } => ref($self);    $clone->{renewed}++;    return $clone;  }This method reconstructs the encoding object if necessary.  If you needto store the state during encoding, this is where you clone your object.PerlIO ALWAYS calls this method to make sure it has its own privateencoding object.=item -E<gt>renewedPredefined As:  sub renewed { $_[0]->{renewed} || 0 }Tells whether the object is renewed (and how many times).  Somemodules emit C<Use of uninitialized value in null operation> warningunless the value is numeric so return 0 for false.=item -E<gt>perlio_ok()Predefined As:  sub perlio_ok {       eval{ require PerlIO::encoding };      return $@ ? 0 : 1;  }If your encoding does not support PerlIO for some reasons, just; sub perlio_ok { 0 }=item -E<gt>needs_lines()Predefined As:  sub needs_lines { 0 };If your encoding can work with PerlIO but needs line buffering, youMUST define this method so it returns true.  7bit ISO-2022 encodingsare one example that needs this.  When this method is missing, falseis assumed.=back=head2 Example: Encode::ROT13  package Encode::ROT13;  use strict;  use base qw(Encode::Encoding);  __PACKAGE__->Define('rot13');  sub encode($$;$){      my ($obj, $str, $chk) = @_;      $str =~ tr/A-Za-z/N-ZA-Mn-za-m/;      $_[1] = '' if $chk; # this is what in-place edit means      return $str;  }  # Jr pna or ynml yvxr guvf;  *decode = \&encode;  1;=head1 Why the heck Encode API is different?It should be noted that the I<$check> behaviour is different from theouter public API. The logic is that the "unchecked" case is usefulwhen the encoding is part of a stream which may be reporting errors(e.g. STDERR).  In such cases, it is desirable to get everythingthrough somehow without causing additional errors which obscure theoriginal one. Also, the encoding is best placed to know what thecorrect replacement character is, so if that is the desired behaviourthen letting low level code do it is the most efficient.By contrast, if I<$check> is true, the scheme above allows theencoding to do as much as it can and tell the layer above how muchthat was. What is lacking at present is a mechanism to report whatwent wrong. The most likely interface will be an additional methodcall to the object, or perhaps (to avoid forcing per-stream objectson otherwise stateless encodings) an additional parameter.It is also highly desirable that encoding classes inherit fromC<Encode::Encoding> as a base class. This allows that class to defineadditional behaviour for all encoding objects.  package Encode::MyEncoding;  use base qw(Encode::Encoding);  __PACKAGE__->Define(qw(myCanonical myAlias));to create an object with C<< bless {Name => ...}, $class >>, and calldefine_encoding.  They inherit their C<name> method fromC<Encode::Encoding>.=head2 Compiled EncodingsFor the sake of speed and efficiency, most of the encodings are nowsupported via a I<compiled form>: XS modules generated from UCMfiles.   Encode provides the enc2xs tool to achieve that.  Please seeL<enc2xs> for more details.=head1 SEE ALSOL<perlmod>, L<enc2xs>=begin future=over 4=item Scheme 1The fixup routine gets passed the remaining fragment of string beingprocessed.  It modifies it in place to remove bytes/characters it canunderstand and returns a string used to represent them.  For example: sub fixup {   my $ch = substr($_[0],0,1,'');   return sprintf("\x{%02X}",ord($ch); }This scheme is close to how the underlying C code for Encode works,but gives the fixup routine very little context.=item Scheme 2The fixup routine gets passed the original string, an index intoit of the problem area, and the output string so far.  It appendswhat it wants to the output string and returns a new index into theoriginal string.  For example: sub fixup {   # my ($s,$i,$d) = @_;   my $ch = substr($_[0],$_[1],1);   $_[2] .= sprintf("\x{%02X}",ord($ch);   return $_[1]+1; }This scheme gives maximal control to the fixup routine but is morecomplicated to code, and may require that the internals of Encode be tweaked tokeep the original string intact.=item Other SchemesHybrids of the above.Multiple return values rather than in-place modifications.Index into the string could be C<pos($str)> allowing C<s/\G...//>.=back=end future=cut

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久免费精品高清特色大片| 成人欧美一区二区三区在线播放| 欧美三级电影在线看| 国产一区久久久| 婷婷久久综合九色综合伊人色| 久久久亚洲国产美女国产盗摄 | 国产精品网曝门| 欧美mv日韩mv亚洲| 欧美久久一区二区| 在线视频国内自拍亚洲视频| 成人亚洲一区二区一| 精品一区二区在线免费观看| 亚洲成国产人片在线观看| 国产精品久久久久久久久图文区| 精品电影一区二区| 日韩一区和二区| 欧美一二三区在线| 91精品国产91综合久久蜜臀| 欧美色综合网站| 欧美性猛交一区二区三区精品| 99久久精品99国产精品 | 怡红院av一区二区三区| 国产精品拍天天在线| 日韩一区二区在线观看| 欧美视频在线播放| 欧美伦理影视网| 国内久久精品视频| 麻豆成人在线观看| 麻豆免费精品视频| 久久99久久99精品免视看婷婷 | 欧美国产丝袜视频| 国产精品热久久久久夜色精品三区 | 全部av―极品视觉盛宴亚洲| 日韩国产在线观看| 国产不卡视频一区二区三区| 国产99久久久国产精品潘金| 成人99免费视频| 一本到高清视频免费精品| 91豆麻精品91久久久久久| 欧美日韩国产一级二级| 欧美xxxxxxxxx| 国产精品久久久久久久久久久免费看 | 日韩视频在线永久播放| 国产视频一区在线播放| 国产精品久久久久影视| 亚洲精品亚洲人成人网在线播放| 亚洲午夜精品一区二区三区他趣| 天堂成人免费av电影一区| 蜜臀av一级做a爰片久久| 国产成人av网站| 91官网在线免费观看| 精品国产免费久久| 91美女片黄在线观看91美女| 日本韩国欧美三级| 制服丝袜日韩国产| 亚洲国产综合人成综合网站| 99久久国产综合精品女不卡| 久久精品这里都是精品| 成人激情电影免费在线观看| 337p日本欧洲亚洲大胆色噜噜| 男女性色大片免费观看一区二区| 欧美精品免费视频| 天天色图综合网| 欧美精品 日韩| 亚洲一区在线观看免费| 欧美亚洲免费在线一区| 亚洲成a天堂v人片| 91麻豆精品国产综合久久久久久| 亚洲婷婷在线视频| 亚洲精品高清在线观看| 国产日产亚洲精品系列| 日韩精品高清不卡| 日本精品一区二区三区四区的功能| 久久综合久久鬼色| 久久国产欧美日韩精品| 欧美色图在线观看| 一区二区三区精品在线观看| 不卡一区二区三区四区| 精品国产免费视频| 国产一区二区三区在线观看免费视频 | 欧美激情一区在线| 国产米奇在线777精品观看| 精品日韩99亚洲| 开心九九激情九九欧美日韩精美视频电影 | 国产成人免费视频| 久久久综合精品| 国产精品一卡二卡在线观看| 久久综合久久99| 国产精品99久久久久久有的能看| 精品精品国产高清a毛片牛牛| 九九精品视频在线看| 精品国精品自拍自在线| 成人午夜视频在线| 欧美日韩综合色| 日韩美女一区二区三区四区| 国产精品九色蝌蚪自拍| 欧美高清在线一区二区| 成人av在线电影| 国产亚洲一二三区| 精品一区二区三区久久久| 日韩视频免费直播| 麻豆91免费观看| 欧美成人精品福利| 国产一区福利在线| 国产精品毛片a∨一区二区三区| 成人18视频日本| 亚洲综合一区在线| 日韩欧美国产成人一区二区| 国内精品国产成人国产三级粉色| 国产日韩欧美精品综合| 97久久超碰国产精品| 日韩黄色免费网站| 欧美精彩视频一区二区三区| 91蜜桃婷婷狠狠久久综合9色| 日韩主播视频在线| 国产欧美精品在线观看| 欧美日韩国产在线观看| 国产成人av电影在线| 亚洲国产精品一区二区久久| 国产日韩一级二级三级| 欧美日韩一区二区在线观看| 国产精品系列在线播放| 婷婷丁香久久五月婷婷| 国产精品欧美综合在线| 欧美一二三四区在线| 色综合久久久网| 国产精品夜夜嗨| 日本成人中文字幕| 一区二区三区中文字幕精品精品| 精品久久人人做人人爽| 欧美在线视频全部完| 国产.欧美.日韩| 久久se这里有精品| 日韩影院精彩在线| 亚洲中国最大av网站| 亚洲欧洲精品成人久久奇米网| 2017欧美狠狠色| 日韩一级免费一区| 制服丝袜亚洲色图| 欧美在线你懂的| 91社区在线播放| 成人污污视频在线观看| 国产精品99久久久| 日韩精品高清不卡| 日日摸夜夜添夜夜添国产精品| 伊人夜夜躁av伊人久久| 国产精品乱码一区二三区小蝌蚪| 精品av久久707| 久久亚洲精品国产精品紫薇| 日韩免费看的电影| 日韩美女视频在线| 日韩视频一区二区在线观看| 日韩一区二区精品在线观看| 91精品国产黑色紧身裤美女| 欧美电影一区二区三区| 欧美精品1区2区3区| 日韩一区二区高清| 国产一区二三区好的| 麻豆国产精品官网| 国内精品伊人久久久久av一坑| 极品尤物av久久免费看| 国产米奇在线777精品观看| 国产精品一区二区三区99| 波多野洁衣一区| 色婷婷久久久亚洲一区二区三区| 日本精品一级二级| 51精品视频一区二区三区| 欧美一级电影网站| 国产嫩草影院久久久久| 中文字幕欧美一| 亚洲成人免费在线观看| 久久国产婷婷国产香蕉| 成人综合在线观看| 在线观看欧美黄色| 久久亚洲精精品中文字幕早川悠里 | 国产成人激情av| 欧洲国内综合视频| 欧美精品一区二区三区四区 | 欧美日韩一区二区三区四区| 欧美刺激午夜性久久久久久久| 日本一区二区视频在线| 夜色激情一区二区| 成人性生交大合| 欧美日韩在线免费视频| 国产亚洲一区字幕| 亚洲国产精品影院| 成人免费的视频| 日韩一区二区三区视频在线 | 成人伦理片在线| 日韩免费性生活视频播放| 亚洲欧美日本在线| 国产精品资源网| 91精品国产色综合久久不卡蜜臀 | 国产校园另类小说区| 午夜视频在线观看一区| 99视频精品全部免费在线| 久久亚洲影视婷婷| 麻豆精品一区二区三区| 色综合久久综合网| 国产精品三级电影|