/[pcre]/code/trunk/perltest.pl
ViewVC logotype

Diff of /code/trunk/perltest.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 488 by ph10, Mon Jan 11 15:29:42 2010 UTC revision 512 by ph10, Tue Mar 30 11:11:52 2010 UTC
# Line 85  for (;;) Line 85  for (;;)
85    
86    # The private /+ modifier means "print $' afterwards".    # The private /+ modifier means "print $' afterwards".
87    
88    $showrest = ($pattern =~ s/\+(?=[a-z]*$)//);    $showrest = ($pattern =~ s/\+(?=[a-zA-Z]*$)//);
89    
90    # Remove /8 from a UTF-8 pattern.    # Remove /8 from a UTF-8 pattern.
91    
92    $utf8 = $pattern =~ s/8(?=[a-z]*$)//;    $utf8 = $pattern =~ s/8(?=[a-zA-Z]*$)//;
93    
94    # Remove /J from a pattern with duplicate names.    # Remove /J from a pattern with duplicate names.
95    
96    $pattern =~ s/J(?=[a-z]*$)//;    $pattern =~ s/J(?=[a-zA-Z]*$)//;
97    
98      # Remove /K from a pattern (asks pcretest to check MARK data) */
99    
100      $pattern =~ s/K(?=[a-zA-Z]*$)//;
101    
102    # Check that the pattern is valid    # Check that the pattern is valid
103    
# Line 127  for (;;) Line 131  for (;;)
131      chomp;      chomp;
132      printf $outfile "$_\n" if $infile ne "STDIN";      printf $outfile "$_\n" if $infile ne "STDIN";
133    
134      s/\s+$//;      s/\s+$//;  # Remove trailing space
135      s/^\s+//;      s/^\s+//;  # Remove leading space
136        s/\\Y//g;  # Remove \Y (pcretest flag to set PCRE_NO_START_OPTIMIZE)
137    
138      last if ($_ eq "");      last if ($_ eq "");
139      $x = eval "\"$_\"";   # To get escapes processed      $x = eval "\"$_\"";   # To get escapes processed

Legend:
Removed from v.488  
changed lines
  Added in v.512

  ViewVC Help
Powered by ViewVC 1.1.5