App-PlatformInfo
view release on metacpan or search on metacpan
script/platform-info view on Meta::CPAN
#}
#
#BEGIN {
# my @xs_compati_bit_properties = qw(
# latin1 ascii utf8 indent canonical space_before space_after allow_nonref shrink
# allow_blessed convert_blessed relaxed allow_unknown
# allow_tags
# );
# my @pp_bit_properties = qw(
# allow_singlequote allow_bignum loose
# allow_barekey escape_slash as_nonblessed
# );
#
# if ( OLD_PERL ) {
# my $helper = $] >= 5.006 ? 'JSON::PP::Compat5006' : 'JSON::PP::Compat5005';
# eval qq| require $helper |;
# if ($@) { Carp::croak $@; }
# }
#
# for my $name (@xs_compati_bit_properties, @pp_bit_properties) {
# my $property_id = 'P_' . uc($name);
script/platform-info view on Meta::CPAN
# my $ascii;
# my $latin1;
# my $utf8;
# my $space_before;
# my $space_after;
# my $canonical;
# my $allow_blessed;
# my $convert_blessed;
#
# my $indent_length;
# my $escape_slash;
# my $bignum;
# my $as_nonblessed;
# my $allow_tags;
#
# my $depth;
# my $indent_count;
# my $keysort;
#
#
# sub PP_encode_json {
# my $self = shift;
# my $obj = shift;
#
# $indent_count = 0;
# $depth = 0;
#
# my $props = $self->{PROPS};
#
# ($ascii, $latin1, $utf8, $indent, $canonical, $space_before, $space_after, $allow_blessed,
# $convert_blessed, $escape_slash, $bignum, $as_nonblessed, $allow_tags)
# = @{$props}[P_ASCII .. P_SPACE_AFTER, P_ALLOW_BLESSED, P_CONVERT_BLESSED,
# P_ESCAPE_SLASH, P_ALLOW_BIGNUM, P_AS_NONBLESSED, P_ALLOW_TAGS];
#
# ($max_depth, $indent_length) = @{$self}{qw/max_depth indent_length/};
#
# $keysort = $canonical ? sub { $a cmp $b } : undef;
#
# if ($self->{sort_by}) {
# $keysort = ref($self->{sort_by}) eq 'CODE' ? $self->{sort_by}
# : $self->{sort_by} =~ /\D+/ ? $self->{sort_by}
script/platform-info view on Meta::CPAN
# "\"" => '\"',
# "\\" => '\\\\',
# "\'" => '\\\'',
# );
#
#
# sub string_to_json {
# my ($self, $arg) = @_;
#
# $arg =~ s/([\x22\x5c\n\r\t\f\b])/$esc{$1}/g;
# $arg =~ s/\//\\\//g if ($escape_slash);
# $arg =~ s/([\x00-\x08\x0b\x0e-\x1f])/'\\u00' . unpack('H2', $1)/eg;
#
# if ($ascii) {
# $arg = JSON_PP_encode_ascii($arg);
# }
#
# if ($latin1) {
# $arg = JSON_PP_encode_latin1($arg);
# }
#
script/platform-info view on Meta::CPAN
# my $int = eval qq| $checkint |;
# if ($int =~ /[eE]/) {
# $max_intsize = $d - 1;
# last;
# }
# }
#}
#
#{
#
# my %escapes = (
# b => "\x8",
# t => "\x9",
# n => "\xA",
# f => "\xC",
# r => "\xD",
# '\\' => '\\',
# '"' => '"',
# '/' => '/',
# );
#
script/platform-info view on Meta::CPAN
# if ($utf16) {
# decode_error("missing low surrogate character in surrogate pair");
# }
#
# utf8::decode($s) if($is_utf8);
#
# return $s;
# }
# elsif($ch eq '\\'){
# next_chr();
# if(exists $escapes{$ch}){
# $s .= $escapes{$ch};
# }
# elsif($ch eq 'u'){
# my $u = '';
#
# for(1..4){
# $ch = next_chr();
# last OUTER if($ch !~ /[0-9a-fA-F]/);
# $u .= $ch;
# }
#
script/platform-info view on Meta::CPAN
# }
# else {
# $s .= chr $hex;
# }
# }
#
# }
# else{
# unless ($loose) {
# $at -= 2;
# decode_error('illegal backslash escape sequence in string');
# }
# $s .= $ch;
# }
# }
# else{
#
# if ( ord $ch > 127 ) {
# unless( $ch = is_valid_utf8($ch) ) {
# $at -= 1;
# decode_error("malformed UTF-8 character in JSON string");
( run in 0.331 second using v1.01-cache-2.11-cpan-c21f80fb71c )