This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | CC_ALNUM (1 << 1) |
class for alpha-numerical characters | |
#define | CC_ALPHA (1 << 2) |
class for upper- or lower-case characters | |
#define | CC_ASCII (1 << 3) |
class for ASCII characters | |
#define | CC_BLANK (1 << 4) |
class for blank characters | |
#define | CC_CNTRL (1 << 5) |
class for ASCII control characters | |
#define | CC_DIGIT (1 << 6) |
class for digit characters | |
#define | CC_GRAPH (1 << 7) |
class for graphable characters | |
#define | CC_LOWER (1 << 8) |
class for lower-case characters | |
#define | CC_PRINT (1 << 9) |
class for printable characters | |
#define | CC_PUNCT (1 << 10) |
class for punctuation characters | |
#define | CC_SPACE (1 << 11) |
class for white space characters | |
#define | CC_UPPER (1 << 12) |
class for upper-case characters | |
#define | CC_XDIGIT (1 << 13) |
class for hexadecimal characters | |
#define | str_isempty(str) (!str || str_check(str, CC_BLANK)) |
check if string is empty | |
#define | str_isalnum(str) str_check(str, CC_ALNUM) |
check string for alpha-numerical characters | |
#define | str_isalpha(str) str_check(str, CC_ALPHA) |
check string for upper- or lower-case characters | |
#define | str_isascii(str) str_check(str, CC_ASCII) |
check string for ASCII characters | |
#define | str_isdigit(str) str_check(str, CC_DIGIT) |
check string for digit characters | |
#define | str_isgraph(str) str_check(str, CC_GRAPH) |
check string for graphable characters | |
#define | str_islower(str) str_check(str, CC_LOWER) |
check string for lower-case characters | |
#define | str_isprint(str) str_check(str, CC_PRINT) |
check string for printable characters | |
#define | str_isupper(str) str_check(str, CC_UPPER) |
check string for upper-case characters | |
#define | str_isxdigit(str) str_check(str, CC_XDIGIT) |
check string for hexadecimal characters | |
#define | CHUNKSIZE 4096 |
Functions | |
int | str_check (const char *str, int allowed) |
check string against classes of allowed characters | |
int | str_cmp (const char *str1, const char *str2) |
compare two strings | |
int | str_cmpn (const char *str1, const char *str2, int n) |
compare two strings | |
int | str_equal (const char *str1, const char *str2) |
compare two strings | |
char * | str_cpy (char *dst, const char *src) |
copy a string | |
char * | str_cpyn (char *dst, const char *src, int n) |
copy a string | |
char * | str_dup (const char *str) |
duplicate a string | |
char * | str_chr (const char *str, int c, int n) |
scan string for character | |
char * | str_rchr (const char *str, int c, int n) |
scan string for character beginning at the end | |
char * | str_str (const char *str, const char *needle) |
locate a substring | |
int | str_len (const char *str) |
calculate the length of a string | |
char * | str_path_dirname (const char *path) |
parse directory component | |
char * | str_path_basename (const char *path) |
parse basename component | |
char * | str_path_concat (const char *dirname, const char *basename) |
concatenate dirname and basename | |
int | str_path_isabs (const char *str) |
check if path is absolute and contains no dot entries or ungraphable characters | |
int | str_path_isdot (const char *str) |
check if given path contains . or .. entries | |
char * | str_tolower (char *str) |
convert string to lower-case | |
char * | str_toupper (char *str) |
convert string to upper-case | |
int | str_toumax (const char *str, unsigned long long int *val, int base, int n) |
convert string to integer | |
int | str_readline (int fd, char **str) |
read a line of input | |
int | str_readfile (int fd, char **str) |
read until end of file | |
int | str_read (int fd, char **str, int len) |
read exact number of bytes |