Rev 4245 | Rev 4265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4245 | Rev 4264 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | #define U_BOM 0xfeff |
43 | #define U_BOM 0xfeff |
44 | 44 | ||
45 | /**< No size limit constant */ |
45 | /**< No size limit constant */ |
46 | #define STR_NO_LIMIT ((size_t) -1) |
46 | #define STR_NO_LIMIT ((size_t) -1) |
47 | 47 | ||
48 | /**< Maximum size of a string containing cnt characters */ |
48 | /**< Maximum size of a string containing @c length characters */ |
49 | #define STR_BOUNDS(cnt) (cnt << 2) |
49 | #define STR_BOUNDS(length) ((length) << 2) |
50 | 50 | ||
51 | extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); |
51 | extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); |
52 | extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz); |
52 | extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz); |
53 | 53 | ||
54 | extern size_t str_size(const char *str); |
54 | extern size_t str_size(const char *str); |
Line 79... | Line 79... | ||
79 | 79 | ||
80 | /* |
80 | /* |
81 | * TODO: Get rid of this. |
81 | * TODO: Get rid of this. |
82 | */ |
82 | */ |
83 | 83 | ||
84 | extern int strcmp(const char *, const char *); |
- | |
85 | extern int strncmp(const char *, const char *, size_t); |
84 | extern int strncmp(const char *, const char *, size_t); |
86 | extern int stricmp(const char *, const char *); |
85 | extern int stricmp(const char *, const char *); |
87 | 86 | ||
88 | extern char *strcpy(char *, const char *); |
87 | extern char *strcpy(char *, const char *); |
89 | extern char *strncpy(char *, const char *, size_t); |
88 | extern char *strncpy(char *, const char *, size_t); |
90 | 89 | ||
91 | extern char *strcat(char *, const char *); |
90 | extern char *strcat(char *, const char *); |
92 | 91 | ||
93 | extern size_t strlen(const char *); |
- | |
94 | - | ||
95 | extern char *strdup(const char *); |
92 | extern char *strdup(const char *); |
96 | 93 | ||
97 | extern char *strchr(const char *, int); |
94 | extern char *strchr(const char *, int); |
98 | extern char *strrchr(const char *, int); |
95 | extern char *strrchr(const char *, int); |
99 | 96 |