/[pcre]/code/trunk/doc/pcreapi.3
ViewVC logotype

Diff of /code/trunk/doc/pcreapi.3

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

revision 182 by ph10, Wed Jun 13 15:09:54 2007 UTC revision 191 by ph10, Mon Jul 30 11:13:54 2007 UTC
# Line 1465  description above. Line 1465  description above.
1465  .sp  .sp
1466    PCRE_ERROR_NULLWSLIMIT    (-22)    PCRE_ERROR_NULLWSLIMIT    (-22)
1467  .sp  .sp
1468  When a group that can match an empty substring is repeated with an unbounded  When a parenthesized subpattern that can match an empty substring is repeated
1469  upper limit, the subject position at the start of the group must be remembered,  with an unbounded upper limit, the subject position at the start of the group
1470  so that a test for an empty string can be made when the end of the group is  must be remembered, so that a test for an empty string can be made when the end
1471  reached. Some workspace is required for this; if it runs out, this error is  of the group is reached. The repetition loop is automatically terminated when
1472  given.  an empty string is matched.
1473    .P
1474    Some workspace is required for remembering the starting position. For most
1475    capturing subpatterns, an internal recursive call of the match() function is
1476    used, and in this case, the workspace is taken from the runtime stack. However,
1477    for non-capturing subpatterns, this is not available. Instead, some fixed
1478    workspace (taken from the top-level stack) is used. If it runs out, the
1479    PCRE_ERROR_NULLWSLIMIT error is given. The size of the fixed workspace allows
1480    for up to 1000 repetitions of a non-capturing subpattern that might match an
1481    empty string. If this limit is a problem for you, you can sometimes get round
1482    it by changing a non-capturing subpattern into a capturing one, but that will
1483    increase the amount of runtime stack that is used.
1484  .sp  .sp
1485    PCRE_ERROR_BADNEWLINE     (-23)    PCRE_ERROR_BADNEWLINE     (-23)
1486  .sp  .sp
# Line 1870  Cambridge CB2 3QH, England. Line 1881  Cambridge CB2 3QH, England.
1881  .rs  .rs
1882  .sp  .sp
1883  .nf  .nf
1884  Last updated: 13 June 2007  Last updated: 30 July 2007
1885  Copyright (c) 1997-2007 University of Cambridge.  Copyright (c) 1997-2007 University of Cambridge.
1886  .fi  .fi

Legend:
Removed from v.182  
changed lines
  Added in v.191

  ViewVC Help
Powered by ViewVC 1.1.5