| version 1.15, 2002/03/28 21:41:56 |
version 1.16, 2002/08/16 20:31:43 |
|
|
| |
|
| #define strendstr(__s1,__s2) (strstr(__s1,__s2) + strlen(__s2)) |
#define strendstr(__s1,__s2) (strstr(__s1,__s2) + strlen(__s2)) |
| |
|
| char *strestr(const char *s1, const char *s2); |
#ifdef PLATON_PREFIX |
| char *stristr(const char *s1, const char *s2); |
char *FUNCTION(strestr)(const char *s1, const char *s2); |
| |
char *FUNCTION(stristr)(const char *s1, const char *s2); |
| |
#else |
| |
char *strestr(const char *s1, const char *s2); |
| |
char *stristr(const char *s1, const char *s2); |
| |
#endif |
| |
|
| #define strcasestr(__s1, __s2) stristr(__s1, __s2) |
#define strcasestr(__s1, __s2) stristr(__s1, __s2) |
| |
|
| char *str_white_str(char *str, char *substr, int *size); |
#ifdef PLATON_PREFIX |
| |
char *FUNCTION(str_white_str)(char *str, char *substr, int *size); |
| |
#else |
| |
char *str_white_str(char *str, char *substr, int *size); |
| |
#endif |
| |
|
| #define strwhitestr(str, substr, size) str_white_str(str, substr, size) |
#define strwhitestr(str, substr, size) str_white_str(str, substr, size) |
| #define strwstr(str, substr) str_white_str(str, substr, NULL) |
#define strwstr(str, substr) str_white_str(str, substr, NULL) |
| Line 59 char *str_white_str(char *str, char *sub |
|
| Line 68 char *str_white_str(char *str, char *sub |
|
| * strcnt_sepstr() - count number of separate substrings in string |
* strcnt_sepstr() - count number of separate substrings in string |
| */ |
*/ |
| |
|
| int strcnt(const char *str, const int c); |
#ifdef PLATON_PREFIX |
| int strcnt_str(const char *str, const char *substr); |
int FUNCTION(strcnt)(const char *str, const int c); |
| int strcnt_sepstr(const char *str, const char *substr); |
int FUNCTION(strcnt_str)(const char *str, const char *substr); |
| |
int FUNCTION(strcnt_sepstr)(const char *str, const char *substr); |
| |
#else |
| |
int strcnt(const char *str, const int c); |
| |
int strcnt_str(const char *str, const char *substr); |
| |
int strcnt_sepstr(const char *str, const char *substr); |
| |
#endif |
| |
|
| /* |
/* |
| * Removing functions |
* Removing functions |
| Line 79 int strcnt_sepstr(const char *str, const |
|
| Line 94 int strcnt_sepstr(const char *str, const |
|
| * one space character |
* one space character |
| */ |
*/ |
| |
|
| char *strdel(char *s); |
#ifdef PLATON_PREFIX |
| |
char *FUNCTION(strdel)(char *s); |
| char *strrmlf(char *s); |
char *FUNCTION(strrmlf)(char *s); |
| char *strrmcr(char *s); |
char *FUNCTION(strrmcr)(char *s); |
| |
#else |
| |
char *strdel(char *s); |
| |
char *strrmlf(char *s); |
| |
char *strrmcr(char *s); |
| |
#endif |
| |
|
| #define strrmeol(__s) strrmcr(strrmlf(__s)) |
#define strrmeol(__s) strrmcr(strrmlf(__s)) |
| #define strrmcrlf(__s) strrmeol(__s) |
#define strrmcrlf(__s) strrmeol(__s) |
| #define strrmlfcr(__s) strrmeol(__s) |
#define strrmlfcr(__s) strrmeol(__s) |
| |
|
| char *str_left_trim(char *s); |
#ifdef PLATON_PREFIX |
| char *str_right_trim(char *s); |
char *FUNCTION(str_left_trim)(char *s); |
| char *str_trim_whitechars(char *s); |
char *FUNCTION(str_right_trim)(char *s); |
| |
char *FUNCTION(str_trim_whitechars)(char *s); |
| |
# define ltrim(s) FUNCTION(str_left_trim)(s) |
| |
# define rtrim(s) FUNCTION(str_right_trim)(s) |
| |
|
| |
#else |
| |
char *str_left_trim(char *s); |
| |
char *str_right_trim(char *s); |
| |
char *str_trim_whitechars(char *s); |
| |
# define ltrim(s) str_left_trim(s) |
| |
# define rtrim(s) str_right_trim(s) |
| |
|
| |
#endif |
| |
|
| #define ltrim(s) str_left_trim(s) |
|
| #define rtrim(s) str_right_trim(s) |
|
| #define trim(s) rtrim(ltrim(s)) |
#define trim(s) rtrim(ltrim(s)) |
| #define strtrim(s) trim(s) |
#define strtrim(s) trim(s) |
| #define str_trim(s) trim(s) |
#define str_trim(s) trim(s) |
| Line 104 char *str_trim_whitechars(char *s); |
|
| Line 134 char *str_trim_whitechars(char *s); |
|
| * strins() - function inserts string ins at position str; |
* strins() - function inserts string ins at position str; |
| * there MUST be enough memory allocated in str |
* there MUST be enough memory allocated in str |
| */ |
*/ |
| char *strins(char *str, char *ins); |
#ifdef PLATON_PREFIX |
| |
char *FUNCTION(strins)(char *str, char *ins); |
| |
#else |
| |
char *strins(char *str, char *ins); |
| |
#endif |
| |
|
| /* |
/* |
| * Comparing functions |
* Comparing functions |
| Line 112 char *strins(char *str, char *ins); |
|
| Line 146 char *strins(char *str, char *ins); |
|
| * strrcmp() - compares two string in reverse order |
* strrcmp() - compares two string in reverse order |
| */ |
*/ |
| |
|
| int strrcmp(const char *s1, const char *s2); |
#ifdef PLATON_PREFIX |
| |
int FUNCTION(strrcmp)(const char *s1, const char *s2); |
| |
#else |
| |
int strrcmp(const char *s1, const char *s2); |
| |
#endif |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| } |
} |