/[pcre]/code/trunk/HACKING
ViewVC logotype

Diff of /code/trunk/HACKING

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

revision 212 by ph10, Thu Aug 9 11:16:34 2007 UTC revision 335 by ph10, Sat Apr 12 14:36:14 2008 UTC
# Line 318  maximally respectively. All three are fo Line 318  maximally respectively. All three are fo
318  positive number) the offset back to the matching bracket opcode.  positive number) the offset back to the matching bracket opcode.
319    
320  If a subpattern is quantified such that it is permitted to match zero times, it  If a subpattern is quantified such that it is permitted to match zero times, it
321  is preceded by one of OP_BRAZERO or OP_BRAMINZERO. These are single-byte  is preceded by one of OP_BRAZERO, OP_BRAMINZERO, or OP_SKIPZERO. These are
322  opcodes which tell the matcher that skipping this subpattern entirely is a  single-byte opcodes that tell the matcher that skipping the following
323  valid branch.  subpattern entirely is a valid branch. In the case of the first two, not
324    skipping the pattern is also valid (greedy and non-greedy). The third is used
325    when a pattern has the quantifier {0,0}. It cannot be entirely discarded,
326    because it may be called as a subroutine from elsewhere in the regex.
327    
328  A subpattern with an indefinite maximum repetition is replicated in the  A subpattern with an indefinite maximum repetition is replicated in the
329  compiled data its minimum number of times (or once with OP_BRAZERO if the  compiled data its minimum number of times (or once with OP_BRAZERO if the
# Line 411  at compile time, and so does not cause a Line 414  at compile time, and so does not cause a
414  data.  data.
415    
416  Philip Hazel  Philip Hazel
417  August 2007  April 2008

Legend:
Removed from v.212  
changed lines
  Added in v.335

  ViewVC Help
Powered by ViewVC 1.1.5