D:/opendownloadmanager/ODM-1.x/InetFile/cURL_lib/parsedate.c File Reference

#include "setup.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <curl/curl.h>

Go to the source code of this file.

Classes

struct  tzinfo

Defines

#define tDAYZONE   -60

Enumerations

enum  assume { DATE_MDAY, DATE_YEAR, DATE_TIME }

Functions

static time_t Curl_parsedate (const char *date)
static int checkday (char *check, size_t len)
static int checkmonth (char *check)
static int checktz (char *check)
static void skip (const char **date)
time_t curl_getdate (const char *p, const time_t *now)

Variables

const char *const Curl_wkday []
static const char *const weekday []
const char *const Curl_month []
static struct tzinfo tz []


Define Documentation

#define tDAYZONE   -60

Definition at line 105 of file parsedate.c.


Enumeration Type Documentation

enum assume

Enumerator:
DATE_MDAY 
DATE_YEAR 
DATE_TIME 

Definition at line 220 of file parsedate.c.


Function Documentation

static int checkday ( char *  check,
size_t  len 
) [static]

Definition at line 157 of file parsedate.c.

References curl_strequal(), Curl_wkday, FALSE, TRUE, and weekday.

Referenced by Curl_parsedate().

static int checkmonth ( char *  check  )  [static]

Definition at line 176 of file parsedate.c.

References Curl_month, curl_strequal(), FALSE, and TRUE.

Referenced by Curl_parsedate().

static int checktz ( char *  check  )  [static]

Definition at line 196 of file parsedate.c.

References curl_strequal(), FALSE, tzinfo::name, tzinfo::offset, and TRUE.

Referenced by Curl_parsedate().

time_t curl_getdate ( const char *  p,
const time_t *  now 
)

Definition at line 421 of file parsedate.c.

References Curl_parsedate().

Referenced by Curl_cookie_add(), Curl_readwrite(), and ftp_state_mdtm_resp().

static time_t Curl_parsedate ( const char *  date  )  [static]

Definition at line 226 of file parsedate.c.

References checkday(), checkmonth(), checktz(), DATE_MDAY, DATE_YEAR, FALSE, ISALPHA, ISDIGIT, skip(), and TRUE.

Referenced by curl_getdate().

static void skip ( const char **  date  )  [static]

Definition at line 213 of file parsedate.c.

References ISALNUM.

Referenced by Curl_parsedate(), and libtorrent::buffer::reserve().


Variable Documentation

const char* const Curl_month[]

Initial value:

{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
  "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }

Definition at line 94 of file parsedate.c.

Referenced by checkmonth(), Curl_file(), Curl_http(), and ftp_state_mdtm_resp().

const char* const Curl_wkday[]

Initial value:

{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}

Definition at line 89 of file parsedate.c.

Referenced by checkday(), Curl_file(), Curl_http(), and ftp_state_mdtm_resp().

struct tzinfo tz[] [static]

Definition at line 106 of file parsedate.c.

const char* const weekday[] [static]

Initial value:

{ "Monday", "Tuesday", "Wednesday", "Thursday",
  "Friday", "Saturday", "Sunday" }

Definition at line 91 of file parsedate.c.

Referenced by checkday().


Generated on Sun May 25 00:20:09 2008 by  doxygen 1.5.6