App-PlatformInfo
view release on metacpan or search on metacpan
script/platform-info view on Meta::CPAN
# $s .= JSON_PP_decode_surrogates($utf16, $u) || next;
# $utf16 = undef;
# }
# else {
# if (defined $utf16) {
# decode_error("surrogate pair expected");
# }
#
# if ( ( my $hex = hex( $u ) ) > 127 ) {
# $is_utf8 = 1;
# $s .= JSON_PP_decode_unicode($u) || next;
# }
# else {
# $s .= chr $hex;
# }
# }
#
# }
# else{
# unless ($loose) {
# $at -= 2;
script/platform-info view on Meta::CPAN
#
#
#sub _decode_surrogates {
# my $uni = 0x10000 + (hex($_[0]) - 0xD800) * 0x400 + (hex($_[1]) - 0xDC00);
# my $un = pack('U*', $uni);
# utf8::encode( $un );
# return $un;
#}
#
#
#sub _decode_unicode {
# my $un = pack('U', hex shift);
# utf8::encode( $un );
# return $un;
#}
#
#
#BEGIN {
#
# unless ( defined &utf8::is_utf8 ) {
# require Encode;
# *utf8::is_utf8 = *Encode::is_utf8;
# }
#
# if ( !OLD_PERL ) {
# *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
# *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
# *JSON::PP::JSON_PP_decode_surrogates = \&_decode_surrogates;
# *JSON::PP::JSON_PP_decode_unicode = \&_decode_unicode;
#
# if ($] < 5.008003) {
# package JSON::PP;
# require subs;
# subs->import('join');
# eval q|
# sub join {
# return '' if (@_ < 2);
# my $j = shift;
# my $str = shift;
( run in 0.549 second using v1.01-cache-2.11-cpan-88abd93f124 )