/[pcre]/code/trunk/doc/html/pcrepartial.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcrepartial.html

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

revision 571 by ph10, Sat Nov 6 17:10:00 2010 UTC revision 572 by ph10, Wed Nov 17 17:55:57 2010 UTC
# Line 143  assumption is made that the end of the s Line 143  assumption is made that the end of the s
143  true end of the available data, and so, if \z, \Z, \b, \B, or $ are  true end of the available data, and so, if \z, \Z, \b, \B, or $ are
144  encountered at the end of the subject, the result is PCRE_ERROR_PARTIAL.  encountered at the end of the subject, the result is PCRE_ERROR_PARTIAL.
145  </P>  </P>
146    <P>
147    Setting PCRE_PARTIAL_HARD also affects the way <b>pcre_exec()</b> checks UTF-8
148    subject strings for validity. Normally, an invalid UTF-8 sequence causes the
149    error PCRE_ERROR_BADUTF8. However, in the special case of a truncated UTF-8
150    character at the end of the subject, PCRE_ERROR_SHORTUTF8 is returned when
151    PCRE_PARTIAL_HARD is set.
152    </P>
153  <br><b>  <br><b>
154  Comparing hard and soft partial matching  Comparing hard and soft partial matching
155  </b><br>  </b><br>
# Line 380  multi-segment data. The example above th Line 387  multi-segment data. The example above th
387    Partial match: do    Partial match: do
388    data&#62; gsb\R\P\P\D    data&#62; gsb\R\P\P\D
389    Partial match: gsb    Partial match: gsb
390    </pre>
 </PRE>  
 </P>  
 <P>  
391  4. Patterns that contain alternatives at the top level which do not all  4. Patterns that contain alternatives at the top level which do not all
392  start with the same pattern item may not work as expected when  start with the same pattern item may not work as expected when
393  PCRE_DFA_RESTART is used with <b>pcre_dfa_exec()</b>. For example, consider this  PCRE_DFA_RESTART is used with <b>pcre_dfa_exec()</b>. For example, consider this
# Line 430  Cambridge CB2 3QH, England. Line 434  Cambridge CB2 3QH, England.
434  </P>  </P>
435  <br><a name="SEC11" href="#TOC1">REVISION</a><br>  <br><a name="SEC11" href="#TOC1">REVISION</a><br>
436  <P>  <P>
437  Last updated: 22 October 2010  Last updated: 07 November 2010
438  <br>  <br>
439  Copyright &copy; 1997-2010 University of Cambridge.  Copyright &copy; 1997-2010 University of Cambridge.
440  <br>  <br>

Legend:
Removed from v.571  
changed lines
  Added in v.572

  ViewVC Help
Powered by ViewVC 1.1.5