You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/07/05 02:12:45 UTC

cvs commit: apache-2.0/src/lib/apr/include apr_fnmatch.h

rbb         00/07/04 17:12:45

  Modified:    src/lib/apr/include apr_fnmatch.h
  Log:
  Document apr_fnmatch.h
  
  Revision  Changes    Path
  1.9       +29 -3     apache-2.0/src/lib/apr/include/apr_fnmatch.h
  
  Index: apr_fnmatch.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/include/apr_fnmatch.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- apr_fnmatch.h	2000/05/26 16:23:12	1.8
  +++ apr_fnmatch.h	2000/07/05 00:12:44	1.9
  @@ -1,4 +1,4 @@
  -/*-
  +/*
    * Copyright (c) 1992, 1993
    *	The Regents of the University of California.  All rights reserved.
    *
  @@ -49,12 +49,38 @@
   #define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
   #define	FNM_PERIOD	0x04	/* Period must be matched by period. */
   /* This flag is an Apache addition */
  -#define FNM_CASE_BLIND  0x08    /* Compare characters case ap_pool_t nsensitively. */
  +#define FNM_CASE_BLIND  0x08    /* Compare characters case-insensitively. */
   
  +/*
  +
  +=head1 ap_status_t ap_fnmatch(const char *pattern, const char *strings, int flags)
  +
  +B<Try to match the string to the given pattern.>
  +
  +    arg 1) The pattern to match to
  +    arg 2) The string we are trying to match
  +    arg 3) flags to use in the match.  Bitwise OR of:
  +                FNM_NOESCAPE   --  Disable backslash escaping
  +                FNM_PATHNAME   --  Slash must be matched by slash
  +                FNM_PERIOD     --  Period must be matched by period
  +                FNM_CASE_BLIND --  Compare characters case-insensitively.
  +
  +=cut
  + */
  +
   APR_EXPORT(ap_status_t) ap_fnmatch(const char *pattern, const char *strings,
   			    int flags);
   
  -/* this function is an Apache addition */
  +/*
  +
  +=head1 ap_status_t ap_is_fnmatch(const char *pattern)
  +
  +B<Determine if the given pattern is a regular expression.>
  +
  +    arg 1) The pattern to search for glob characters.
  +
  +=cut
  + */
   APR_EXPORT(int) ap_is_fnmatch(const char *pattern);
   
   #ifdef __cplusplus