/[pcre]/code/trunk/doc/pcre.txt
ViewVC logotype

Diff of /code/trunk/doc/pcre.txt

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

revision 63 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 69 by nigel, Sat Feb 24 21:40:18 2007 UTC
# Line 819  INFORMATION ABOUT A PATTERN Line 819  INFORMATION ABOUT A PATTERN
819    
820         PCRE_INFO_LASTLITERAL         PCRE_INFO_LASTLITERAL
821    
822       For a non-anchored pattern, return the value of  the  right-       Return the value of the rightmost  literal  byte  that  must
823       most  literal  byte  which must exist in any matched string,       exist  in  any  matched  string, other than at its start, if
824       other than at its start. The fourth argument should point to       such a byte has been recorded. The  fourth  argument  should
825       an int variable. If there is no such byte, or if the pattern       point  to  an  int variable. If there is no such byte, -1 is
826       is anchored, -1 is returned. For example,  for  the  pattern       returned. For anchored patterns,  a  last  literal  byte  is
827       /a\d+z\d+/ the returned value is 'z'.       recorded  only  if  it follows something of variable length.
828         For example, for the pattern /^a\d+z\d+/ the returned  value
829         is "z", but for /^a\dz\d/ the returned value is -1.
830    
831         PCRE_INFO_NAMECOUNT         PCRE_INFO_NAMECOUNT
832         PCRE_INFO_NAMEENTRYSIZE         PCRE_INFO_NAMEENTRYSIZE
# Line 1127  MATCHING A PATTERN Line 1129  MATCHING A PATTERN
1129       there  are no capturing subpatterns, the return value from a       there  are no capturing subpatterns, the return value from a
1130       successful match is 1, indicating that just the  first  pair       successful match is 1, indicating that just the  first  pair
1131       of offsets has been set.       of offsets has been set.
1132    
1133       Some convenience functions are provided for  extracting  the       Some convenience functions are provided for  extracting  the
1134       captured substrings as separate strings. These are described       captured substrings as separate strings. These are described
1135       in the following section.       in the following section.
# Line 1230  EXTRACTING CAPTURED SUBSTRINGS BY NUMBER Line 1233  EXTRACTING CAPTURED SUBSTRINGS BY NUMBER
1233       int pcre_get_substring_list(const char *subject,       int pcre_get_substring_list(const char *subject,
1234            int *ovector, int stringcount, const char ***listptr);            int *ovector, int stringcount, const char ***listptr);
1235    
   
1236       Captured substrings can be accessed directly  by  using  the       Captured substrings can be accessed directly  by  using  the
1237       offsets returned by pcre_exec() in ovector. For convenience,       offsets returned by pcre_exec() in ovector. For convenience,
1238       the functions  pcre_copy_substring(),  pcre_get_substring(),       the functions  pcre_copy_substring(),  pcre_get_substring(),
# Line 3088  DESCRIPTION Line 3090  DESCRIPTION
3090       that is POSIX-like in style. The syntax and semantics of the       that is POSIX-like in style. The syntax and semantics of the
3091       regular expressions themselves are still those of Perl, sub-       regular expressions themselves are still those of Perl, sub-
3092       ject  to  the  setting of various PCRE options, as described       ject  to  the  setting of various PCRE options, as described
3093       below.       below. "POSIX-like in style" means that the API approximates
3094         to  the  POSIX definition; it is not fully POSIX-compatible,
3095         and in multi-byte encoding domains it is probably even  less
3096         compatible.
3097    
3098       The header for these functions is supplied as pcreposix.h to       The header for these functions is supplied as pcreposix.h to
3099       avoid  any  potential  clash  with other POSIX libraries. It       avoid  any  potential  clash  with other POSIX libraries. It

Legend:
Removed from v.63  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.5