Functions | |
int | u_asctime_to_tt (const char *str, time_t *tp) |
Convert an asctime(3) string to time_t . | |
int | u_rfc850_to_tt (const char *str, time_t *tp) |
Convert an rfc850 time string to time_t . | |
int | u_rfc822_to_tt (const char *str, time_t *tp) |
Convert an rfc822 time string to time_t . | |
int | u_httpdate_to_tt (const char *str, time_t *tp) |
Convert an HTTP time string to time_t . | |
int | u_tt_to_rfc822 (char dst[], time_t ts) |
Convert a time_t value to a rfc822 time string. | |
char * | u_strnstr (const char *buf, const char *sub, size_t buflen) |
Locate a substring in another string. | |
int | u_foreach_dir_item (const char *path, unsigned int mask, int(*cb)(struct dirent *, const char *, void *), void *arg) |
Apply the supplied callback to each file in a given directory. | |
int | u_match_ext (const char *filename, const char *extension) |
Match filename extension. | |
ssize_t | u_sqlncpy (char *d, const char *s, size_t slen, int flags) |
Copy and SQL escape/unescape a given string. | |
ssize_t | u_urlncpy (char *d, const char *s, size_t slen, int flags) |
Copy and URL escape/unescape a given string. | |
ssize_t | u_hexncpy (char *d, const char *s, size_t slen, int flags) |
Copy and HEX encode/decode a given string. | |
ssize_t | u_htmlncpy (char *d, const char *s, size_t slen, int flags) |
Copy and HTML escape/unescape a given string. | |
char * | u_stristr (const char *string, const char *sub) |
Locate a given substring ignoring case. | |
char * | u_strnrchr (const char *s, char c, size_t len) |
Locate a character in a string. | |
int | u_tmpfile_open (io_t **pio) |
Create a temporary io_t object. | |
int | u_file_open (const char *file, int flags, io_t **pio) |
Create an io_t object from the file system object file . | |
int | u_getline (io_t *io, u_string_t *ln) |
Read a line from the io_t object io . | |
int | u_fgetline (FILE *in, u_string_t *ln) |
get a line from a FILE object | |
int | u_file_exists (const char *fqn) |
Tell if the given file exists. | |
void | u_tohex (char *hex, const char *src, size_t sz) |
Convert a given string in hexadecimal representation. | |
int | u_md5 (char *buf, size_t sz, char out[MD5_DIGEST_BUFSZ]) |
Calculate the MD5 digest over a given buffer. | |
int | u_md5io (io_t *io, char out[MD5_DIGEST_BUFSZ]) |
Calculate the MD5 hash over an io_t stream. | |
const mime_map_t * | u_get_mime_map (const char *file_name) |
Get the MIME type of a file. | |
const char * | u_guess_mime_type (const char *file_name) |
Guess the MIME type of a file. | |
const char * | klone_version (void) |
Return KLone version string (x.y.z). | |
Variables | |
const char * | days3 [] |
const char * | days [] |
const char * | months [] |
|
Convert the asctime(3) string
Definition at line 66 of file date.c. Referenced by u_httpdate_to_tt(). |
|
Convert the rfc850 string
Definition at line 112 of file date.c. Referenced by u_httpdate_to_tt(). |
|
Convert the rfc822 string
Definition at line 164 of file date.c. Referenced by u_httpdate_to_tt(). |
|
Convert the HTTP time string
Definition at line 214 of file date.c. References u_asctime_to_tt(), u_rfc822_to_tt(), and u_rfc850_to_tt(). |
|
Convert the
Definition at line 242 of file date.c. Referenced by response_set_cookie(), response_set_date(), and response_set_last_modified(). |
|
The function locates the first occurrence of
|
|
Apply the supplied callback
|
|
Return 1 if the filename externsion is equal to
|
|
Copy and SQL escape/unescape, depending on
|
|
Copy an URL escaped/unescaped version of string
Definition at line 391 of file utils.c. Referenced by response_set_cookie(). |
|
Copy an HEX encoded/decoded version of string
|
|
Copy an HTML escaped/unescaped version of string
|
|
Locate the first occurrence of the null-terminated string
|
|
Locate the last occurrence of
|
|
Create a temporary
Definition at line 683 of file utils.c. References io_free(), io_name_set(), and u_file_open(). |
|
Create an
Definition at line 722 of file utils.c. References io_name_set(). Referenced by u_tmpfile_open(). |
|
Read a line and place it into
Definition at line 764 of file utils.c. References io_gets(). |
|
Try to get a line from the
|
|
Tell if the given file
|
|
Convert the string
|
|
Calculate the MD5 digest over the supplied buffer
Definition at line 942 of file utils.c. References u_tohex(). |
|
Calculate the MD5 hash over an
|
|
Get the MIME type of the given file
Definition at line 1034 of file utils.c. References mime_map_s::ext, and mime_map_s::mime_type. |
|
Guess the MIME type of the given file
Definition at line 1067 of file utils.c. References mime_map_s::ext, and mime_map_s::mime_type. |
|
Return KLone version string in the format x.y.z.
|