]> granicus.if.org Git - apache/commitdiff
Document util_date.h using ScanDoc
authorRyan Bloom <rbb@apache.org>
Sun, 6 Aug 2000 15:34:03 +0000 (15:34 +0000)
committerRyan Bloom <rbb@apache.org>
Sun, 6 Aug 2000 15:34:03 +0000 (15:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86012 13f79535-47bb-0310-9956-ffa450edef68

include/util_date.h

index 39bd0a34598dfad161a08a99929ea9e1865176ea..d80391296b72735e68ac71bd1dc3d6d7435b0916 100644 (file)
 extern "C" {
 #endif
 
+/**
+ * @package Apache date routines
+ */
+
 /*
  * util_date.h: prototypes for date parsing utility routines
  */
@@ -71,7 +75,36 @@ extern "C" {
 
 #define BAD_DATE (apr_time_t)0
 
+/**
+ * Compare a string to a mask
+ * @param data The string to compare
+ * @mask Mask characters (arbitrary maximum is 256 characters, just in case):
+ * <PRE>
+ *   @ - uppercase letter
+ *   $ - lowercase letter
+ *   & - hex digit
+ *   # - digit
+ *   ~ - digit or space
+ *   * - swallow remaining characters
+ *  <x> - exact match for any other character
+ * </PRE>
+ * @return 1 if the string matches, 0 otherwise
+ * @deffunc int ap_checkmask(const char *data, const char *mask)
+ */
 API_EXPORT(int) ap_checkmask(const char *data, const char *mask);
+
+/**
+ * Parses an HTTP date in one of three standard forms:
+ * <PRE>
+ *     Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123
+ *     Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
+ *     Sun Nov  6 08:49:37 1994       ; ANSI C's asctime() format
+ * </PRE>
+ * @param date The date in one of the three formats above
+ * @return the apr_time_t number of microseconds since 1 Jan 1970 GMT, or
+ *         0 if this would be out of range or if the date is invalid.
+ * @deffunc apr_time_t ap_parseHTTPdate(const char *date)
+ */
 API_EXPORT(apr_time_t) ap_parseHTTPdate(const char *date);
 
 #ifdef __cplusplus