/[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 512 by ph10, Tue Mar 30 11:11:52 2010 UTC revision 518 by ph10, Tue May 18 15:47:01 2010 UTC
# Line 553  set, any backslash in a pattern that is Line 553  set, any backslash in a pattern that is
553  special meaning causes an error, thus reserving these combinations for future  special meaning causes an error, thus reserving these combinations for future
554  expansion. By default, as in Perl, a backslash followed by a letter with no  expansion. By default, as in Perl, a backslash followed by a letter with no
555  special meaning is treated as a literal. (Perl can, however, be persuaded to  special meaning is treated as a literal. (Perl can, however, be persuaded to
556  give a warning for this.) There are at present no other features controlled by  give an error for this, by running it with the -w option.) There are at present
557  this option. It can also be set by a (?X) option setting within a pattern.  no other features controlled by this option. It can also be set by a (?X)
558    option setting within a pattern.
559  .sp  .sp
560    PCRE_FIRSTLINE    PCRE_FIRSTLINE
561  .sp  .sp
# Line 635  were followed by ?: but named parenthese Line 636  were followed by ?: but named parenthese
636  they acquire numbers in the usual way). There is no equivalent of this option  they acquire numbers in the usual way). There is no equivalent of this option
637  in Perl.  in Perl.
638  .sp  .sp
639      PCRE_UCP
640    .sp
641    This option changes the way PCRE processes \eb, \ed, \es, \ew, and some of the
642    POSIX character classes. By default, only ASCII characters are recognized, but
643    if PCRE_UCP is set, Unicode properties are used instead to classify characters.
644    More details are given in the section on
645    .\" HTML <a href="pcre.html#genericchartypes">
646    .\" </a>
647    generic character types
648    .\"
649    in the
650    .\" HREF
651    \fBpcrepattern\fP
652    .\"
653    page. If you set PCRE_UCP, matching one of the items it affects takes much
654    longer. The option is available only if PCRE has been compiled with Unicode
655    property support.
656    .sp
657    PCRE_UNGREEDY    PCRE_UNGREEDY
658  .sp  .sp
659  This option inverts the "greediness" of the quantifiers so that they are not  This option inverts the "greediness" of the quantifiers so that they are not
# Line 755  out of use. To avoid confusion, they hav Line 774  out of use. To avoid confusion, they hav
774    64  ] is an invalid data character in JavaScript compatibility mode    64  ] is an invalid data character in JavaScript compatibility mode
775    65  different names for subpatterns of the same number are not allowed    65  different names for subpatterns of the same number are not allowed
776    66  (*MARK) must have an argument    66  (*MARK) must have an argument
777      67  this version of PCRE is not compiled with PCRE_UCP support
778  .sp  .sp
779  The numbers 32 and 10000 in errors 48 and 49 are defaults; different values may  The numbers 32 and 10000 in errors 48 and 49 are defaults; different values may
780  be used if the limits were changed when PCRE was built.  be used if the limits were changed when PCRE was built.
# Line 829  matching. Line 849  matching.
849  PCRE handles caseless matching, and determines whether characters are letters,  PCRE handles caseless matching, and determines whether characters are letters,
850  digits, or whatever, by reference to a set of tables, indexed by character  digits, or whatever, by reference to a set of tables, indexed by character
851  value. When running in UTF-8 mode, this applies only to characters with codes  value. When running in UTF-8 mode, this applies only to characters with codes
852  less than 128. Higher-valued codes never match escapes such as \ew or \ed, but  less than 128. By default, higher-valued codes never match escapes such as \ew
853  can be tested with \ep if PCRE is built with Unicode character property  or \ed, but they can be tested with \ep if PCRE is built with Unicode character
854  support. The use of locales with Unicode is discouraged. If you are handling  property support. Alternatively, the PCRE_UCP option can be set at compile
855  characters with codes greater than 128, you should either use UTF-8 and  time; this causes \ew and friends to use Unicode property support instead of
856  Unicode, or use locales, but not try to mix the two.  built-in tables. The use of locales with Unicode is discouraged. If you are
857    handling characters with codes greater than 128, you should either use UTF-8
858    and Unicode, or use locales, but not try to mix the two.
859  .P  .P
860  PCRE contains an internal set of tables that are used when the final argument  PCRE contains an internal set of tables that are used when the final argument
861  of \fBpcre_compile()\fP is NULL. These are sufficient for many applications.  of \fBpcre_compile()\fP is NULL. These are sufficient for many applications.
# Line 2099  Cambridge CB2 3QH, England. Line 2121  Cambridge CB2 3QH, England.
2121  .rs  .rs
2122  .sp  .sp
2123  .nf  .nf
2124  Last updated: 26 March 2010  Last updated: 16 May 2010
2125  Copyright (c) 1997-2010 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
2126  .fi  .fi

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

  ViewVC Help
Powered by ViewVC 1.1.5