Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
t /
re /
Delete
Unzip
Name
Size
Permission
Date
Action
charset.t
13.16
KB
-r--r--r--
2014-12-27 11:49
fold_grind.t
39.63
KB
-r--r--r--
2014-12-27 12:37
no_utf8_pm.t
500
B
-r--r--r--
2014-12-27 11:49
overload.t
5.94
KB
-r--r--r--
2014-12-27 11:49
pat.t
48.6
KB
-r--r--r--
2015-01-24 15:03
pat_advanced.t
87.75
KB
-r--r--r--
2014-12-27 11:49
pat_advanced_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pat_psycho.t
6.42
KB
-r--r--r--
2014-12-27 12:37
pat_psycho_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pat_re_eval.t
37.05
KB
-r--r--r--
2014-12-27 11:49
pat_re_eval_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pat_rt_report.t
36.98
KB
-r--r--r--
2014-12-27 11:49
pat_rt_report_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pat_special_cc.t
1.64
KB
-r--r--r--
2014-12-27 11:49
pat_special_cc_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pat_thr.t
56
B
-r--r--r--
2014-12-27 11:49
pos.t
957
B
-r--r--r--
2014-12-27 11:49
qr-72922.t
1.12
KB
-r--r--r--
2014-12-27 11:49
qr.t
1.95
KB
-r--r--r--
2014-12-27 11:49
qr_gc.t
416
B
-r--r--r--
2014-12-27 11:49
qrstack.t
191
B
-r--r--r--
2014-12-27 11:49
re_tests
62.97
KB
-r--r--r--
2014-12-27 11:49
recompile.t
4.63
KB
-r--r--r--
2014-12-27 11:49
reg_60508.t
687
B
-r--r--r--
2014-12-27 11:49
reg_email.t
3.33
KB
-r--r--r--
2014-12-27 11:49
reg_email_thr.t
56
B
-r--r--r--
2014-12-27 11:49
reg_eval.t
2.35
KB
-r--r--r--
2014-12-27 11:49
reg_eval_scope.t
8.85
KB
-r--r--r--
2014-12-27 11:49
reg_fold.t
6.14
KB
-r--r--r--
2014-12-27 11:49
reg_mesg.t
24.47
KB
-r--r--r--
2014-12-27 11:49
reg_namedcapture.t
760
B
-r--r--r--
2014-12-27 11:49
reg_nc_tie.t
2.22
KB
-r--r--r--
2014-12-27 11:49
reg_pmod.t
2.1
KB
-r--r--r--
2014-12-27 11:49
reg_posixcc.t
4.92
KB
-r--r--r--
2014-12-27 11:49
regex_sets.t
4.62
KB
-r--r--r--
2014-12-27 11:49
regex_sets_compat.t
492
B
-r--r--r--
2014-12-27 11:49
regexp.t
14.42
KB
-r--r--r--
2014-12-27 11:49
regexp_noamp.t
257
B
-r--r--r--
2014-12-27 11:49
regexp_notrie.t
275
B
-r--r--r--
2014-12-27 11:49
regexp_qr.t
194
B
-r--r--r--
2014-12-27 11:49
regexp_qr_embed.t
209
B
-r--r--r--
2014-12-27 11:49
regexp_qr_embed_thr.t
235
B
-r--r--r--
2014-12-27 11:49
regexp_trielist.t
289
B
-r--r--r--
2014-12-27 11:49
regexp_unicode_prop.t
11.15
KB
-r--r--r--
2014-12-27 11:49
regexp_unicode_prop_thr.t
56
B
-r--r--r--
2014-12-27 11:49
rt122747.t
555
B
-r--r--r--
2015-01-10 12:06
rxcode.t
3.15
KB
-r--r--r--
2015-01-11 13:46
subst.t
24.25
KB
-r--r--r--
2014-12-27 11:49
substT.t
170
B
-r--r--r--
2014-12-27 11:49
subst_amp.t
1.45
KB
-r--r--r--
2014-12-27 11:49
subst_wamp.t
211
B
-r--r--r--
2014-12-27 11:49
uniprops.t
543
B
-r--r--r--
2014-12-27 12:37
Save
Rename
#!./perl # # Tests that have to do with checking whether characters have (or not have) # certain Unicode properties; belong (or not belong) to blocks, scripts, etc. # use strict; use warnings; use 5.010; BEGIN { require './test.pl'; skip_all_if_miniperl("no dynamic loading on miniperl, no File::Spec (used by charnames)"); } sub run_tests; # # This is the data to test. # # This is a hash; keys are the property to test. # Values are arrays containing characters to test. The characters can # have the following formats: # '\N{CHARACTER NAME}' - Use character with that name # '\x{1234}' - Use character with that hex escape # '0x1234' - Use chr() to get that character # "a" - Character to use # # If a character entry starts with ! the character does not belong to the class # # If the class is just single letter, we use both \pL and \p{L} # use charnames ':full'; my @CLASSES = ( L => ["a", "A"], Ll => ["b", "!B"], Lu => ["!c", "C"], IsLl => ["d", "!D"], IsLu => ["!e", "E"], LC => ["f", "!1"], 'L&' => ["g", "!2"], 'Lowercase Letter' => ["h", "!H"], Common => ["!i", "3"], Inherited => ["!j", '\x{300}'], InBasicLatin => ['\N{LATIN CAPITAL LETTER A}'], InLatin1Supplement => ['\N{LATIN CAPITAL LETTER A WITH GRAVE}'], InLatinExtendedA => ['\N{LATIN CAPITAL LETTER A WITH MACRON}'], InLatinExtendedB => ['\N{LATIN SMALL LETTER B WITH STROKE}'], InKatakana => ['\N{KATAKANA LETTER SMALL A}'], IsLatin => ["0x100", "0x212b"], IsHebrew => ["0x5d0", "0xfb4f"], IsGreek => ["0x37a", "0x386", "!0x387", "0x388", "0x38a", "!0x38b", "0x38c"], HangulSyllables => ['\x{AC00}'], 'Script=Latin' => ['\x{0100}'], 'Block=LatinExtendedA' => ['\x{0100}'], 'Category=UppercaseLetter' => ['\x{0100}'], # # It's ok to repeat class names. # InLatin1Supplement => $::IS_EBCDIC ? ['!\x{7f}', '\x{80}', '!\x{100}'] : ['!\x{7f}', '\x{80}', '\x{ff}', '!\x{100}'], InLatinExtendedA => ['!\x{7f}', '!\x{80}', '!\x{ff}', '\x{100}'], # # Properties are case-insensitive, and may have whitespace, # dashes and underscores. # 'in-latin1_SUPPLEMENT' => ['\x{80}', '\N{LATIN SMALL LETTER Y WITH DIAERESIS}'], ' ^ In Latin 1 Supplement ' => ['!\x{80}', '\N{COFFIN}'], 'latin-1 supplement' => ['\x{80}', "0xDF"], ); my @USER_DEFINED_PROPERTIES = ( # # User defined properties # InKana1 => ['\x{3040}', '!\x{303F}'], InKana2 => ['\x{3040}', '!\x{303F}'], InKana3 => ['\x{3041}', '!\x{3040}'], InNotKana => ['\x{3040}', '!\x{3041}'], InConsonant => ['d', '!e'], IsSyriac1 => ['\x{0712}', '!\x{072F}'], IsSyriac1KanaMark => ['\x{309A}', '!\x{3090}'], IsSyriac1KanaMark => ['\x{0730}', '!\x{0712}'], '# User-defined character properties may lack \n at the end', InGreekSmall => ['\N{GREEK SMALL LETTER PI}', '\N{GREEK SMALL LETTER FINAL SIGMA}'], InGreekCapital => ['\N{GREEK CAPITAL LETTER PI}', '!\x{03A2}'], Dash => ['-'], ASCII_Hex_Digit => ['!-', 'A'], IsAsciiHexAndDash => ['-', 'A'], ); my @USER_CASELESS_PROPERTIES = ( # # User defined properties which differ depending on /i. Second entry is # false regularly, true under /i # 'IsMyUpper' => ["M", "!m" ], ); # # From the short properties we populate POSIX-like classes. # my %SHORT_PROPERTIES = ( 'Ll' => ['m', '\N{CYRILLIC SMALL LETTER A}'], 'Lu' => ['M', '\N{GREEK CAPITAL LETTER ALPHA}'], 'Lo' => ['\N{HIRAGANA LETTER SMALL A}'], # is also in other alphabetic 'Mn' => ['\N{HEBREW POINT RAFE}'], 'Nd' => ["0", '\N{ARABIC-INDIC DIGIT ZERO}'], 'Pc' => ["_"], 'Po' => ["!"], 'Zs' => [" "], 'Cc' => ['\x{00}'], ); # # Illegal properties # my @ILLEGAL_PROPERTIES = qw[q qrst f foo isfoo infoo ISfoo INfoo Is::foo In::foo]; my %d; while (my ($class, $chars) = each %SHORT_PROPERTIES) { push @{$d {IsAlpha}} => map {$class =~ /^[LM]/ ? $_ : "!$_"} @$chars; push @{$d {IsAlnum}} => map {$class =~ /^[LMN]./ ? $_ : "!$_"} @$chars; push @{$d {IsASCII}} => map {length ($_) == 1 || $_ eq '\x{00}' ? $_ : "!$_"} @$chars; push @{$d {IsCntrl}} => map {$class =~ /^C/ ? $_ : "!$_"} @$chars; push @{$d {IsBlank}} => map {$class =~ /^Z[lps]/ ? $_ : "!$_"} @$chars; push @{$d {IsDigit}} => map {$class =~ /^Nd$/ ? $_ : "!$_"} @$chars; push @{$d {IsGraph}} => map {$class =~ /^([LMNPS]|Co)/ ? $_ : "!$_"} @$chars; push @{$d {IsPrint}} => map {$class =~ /^([LMNPS]|Co|Zs)/ ? $_ : "!$_"} @$chars; push @{$d {IsLower}} => map {$class =~ /^Ll$/ ? $_ : "!$_"} @$chars; push @{$d {IsUpper}} => map {$class =~ /^L[ut]/ ? $_ : "!$_"} @$chars; push @{$d {IsPunct}} => map {$class =~ /^P/ ? $_ : "!$_"} @$chars; push @{$d {IsWord}} => map {$class =~ /^[LMN]/ || $_ eq "_" ? $_ : "!$_"} @$chars; push @{$d {IsSpace}} => map {$class =~ /^Z/ || length ($_) == 1 && ord ($_) >= 0x09 && ord ($_) <= 0x0D ? $_ : "!$_"} @$chars; } delete $d {IsASCII} if $::IS_EBCDIC; push @CLASSES => "# Short properties" => %SHORT_PROPERTIES, "# POSIX like properties" => %d, "# User defined properties" => @USER_DEFINED_PROPERTIES; # # Calculate the number of tests. # my $count = 0; for (my $i = 0; $i < @CLASSES; $i += 2) { $i ++, redo if $CLASSES [$i] =~ /^\h*#\h*(.*)/; $count += 2 * (length $CLASSES [$i] == 1 ? 4 : 2) * @{$CLASSES [$i + 1]}; } $count += 4 * @ILLEGAL_PROPERTIES; $count += 4 * grep {length $_ == 1} @ILLEGAL_PROPERTIES; $count += 8 * @USER_CASELESS_PROPERTIES; plan(tests => $count); run_tests unless caller (); sub match { my ($char, $match, $nomatch, $caseless) = @_; $caseless = "" unless defined $caseless; $caseless = 'i' if $caseless; my ($str, $name); if ($char =~ /^\\/) { $str = eval qq ["$char"]; $name = qq ["$char"]; } elsif ($char =~ /^0x([0-9A-Fa-f]+)$/) { $str = chr hex $1; $name = "chr ($char)"; } else { $str = $char; $name = qq ["$char"]; } undef $@; my $pat = "qr/$match/$caseless"; my $match_pat = eval $pat; is($@, '', "$pat compiled correctly to a regexp: $@"); like($str, $match_pat, "$name correctly matched"); undef $@; $pat = "qr/$nomatch/$caseless"; my $nomatch_pat = eval $pat; is($@, '', "$pat compiled correctly to a regexp: $@"); unlike($str, $nomatch_pat, "$name correctly did not match"); } sub run_tests { while (@CLASSES) { my $class = shift @CLASSES; if ($class =~ /^\h*#\h*(.*)/) { print "# $1\n"; next; } last unless @CLASSES; my $chars = shift @CLASSES; my @in = grep {!/^!./} @$chars; my @out = map {s/^!(?=.)//; $_} grep { /^!./} @$chars; my $in_pat = eval qq ['\\p{$class}']; my $out_pat = eval qq ['\\P{$class}']; match $_, $in_pat, $out_pat for @in; match $_, $out_pat, $in_pat for @out; if (1 == length $class) { # Repeat without braces if name length 1 my $in_pat = eval qq ['\\p$class']; my $out_pat = eval qq ['\\P$class']; match $_, $in_pat, $out_pat for @in; match $_, $out_pat, $in_pat for @out; } } my $pat = qr /^Can't find Unicode property definition/; print "# Illegal properties\n"; foreach my $p (@ILLEGAL_PROPERTIES) { undef $@; my $r = eval "'a' =~ /\\p{$p}/; 1"; is($r, undef, "Unknown Unicode property \\p{$p}"); like($@, $pat, "Unknown Unicode property \\p{$p}"); undef $@; my $s = eval "'a' =~ /\\P{$p}/; 1"; is($s, undef, "Unknown Unicode property \\p{$p}"); like($@, $pat, "Unknown Unicode property \\p{$p}"); if (length $p == 1) { undef $@; my $r = eval "'a' =~ /\\p$p/; 1"; is($r, undef, "Unknown Unicode property \\p$p"); like($@, $pat, "Unknown Unicode property \\p$p"); undef $@; my $s = eval "'a' =~ /\\P$p/; 1"; is($r, undef, "Unknown Unicode property \\P$p"); like($@, $pat, "Unknown Unicode property \\P$p"); } } print "# User-defined properties with /i differences\n"; foreach my $class (shift @USER_CASELESS_PROPERTIES) { my $chars_ref = shift @USER_CASELESS_PROPERTIES; my @in = grep {!/^!./} @$chars_ref; my @out = map {s/^!(?=.)//; $_} grep { /^!./} @$chars_ref; my $in_pat = eval qq ['\\p{$class}']; my $out_pat = eval qq ['\\P{$class}']; # Verify works as regularly for not /i match $_, $in_pat, $out_pat for @in; match $_, $out_pat, $in_pat for @out; # Verify that adding /i doesn't change the in set. match $_, $in_pat, $out_pat, 'i' for @in; # Verify that adding /i does change the out set to match. match $_, $in_pat, $out_pat, 'i' for @out; } } # # User defined properties # sub InKana1 {<<'--'} 3040 309F 30A0 30FF -- sub InKana2 {<<'--'} +utf8::InHiragana +utf8::InKatakana -- sub InKana3 {<<'--'} +utf8::InHiragana +utf8::InKatakana -utf8::IsCn -- sub InNotKana {<<'--'} !utf8::InHiragana -utf8::InKatakana +utf8::IsCn -- sub InConsonant {<<'--'} # Not EBCDIC-aware. 0061 007f -0061 -0065 -0069 -006f -0075 -- sub IsSyriac1 {<<'--'} 0712 072C 0730 074A -- sub InGreekSmall {return "03B1\t03C9"} sub InGreekCapital {return "0391\t03A9\n-03A2"} sub IsAsciiHexAndDash {<<'--'} +utf8::ASCII_Hex_Digit +utf8::Dash -- sub IsMyUpper { my $caseless = shift; if ($caseless) { return "0041\t005A\n0061\t007A" } else { return "0041\t005A" } } # Verify that can use user-defined properties inside another one sub IsSyriac1KanaMark {<<'--'} +main::IsSyriac1 +main::InKana3 &utf8::IsMark -- # fake user-defined properties; these subs shouldn't be called, because # their names don't start with In or Is sub f { die } sub foo { die } sub isfoo { die } sub infoo { die } sub ISfoo { die } sub INfoo { die } sub Is::foo { die } sub In::foo { die } __END__