Go to the source code of this file.
Enumerations | |
| enum | { LF = 0xA, CR = 0xD } |
Functions | |
| 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. | |
| char | u_tochex (int n) |
| void | u_print_version_and_exit (void) |
| 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_printf_ccstr (io_t *o, const char *buf, size_t sz) |
| 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. | |
| int | u_signal (int sig, u_sig_t handler) |
| 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. | |