| version 1.5, 2001/10/21 16:44:22 |
version 1.6, 2001/12/08 18:23:53 |
|
|
| /************************************************************************** |
/************************************************************************** |
| * * |
* * |
| * Special string functions & macros header file * |
* Special string functions and macros header file * |
| * * |
* * |
| * Programmed by Ondrej Jombik. * |
* Programmed by Ondrej Jombik * |
| * (c) Copyright 1997-1999 Alfa & Omega software Limited and StrangeARTS * |
* (c) Copyright 1997-1999 Alfa & Omega software Limited and StrangeARTS * |
| * (c) Copyright 2000 Condy software inc. * |
* (c) Copyright 2000 Condy software inc. * |
| * (c) Copyright 2001 Platon software development group * |
* (c) Copyright 2001 Platon software development group * |
| * All rights reserved. * |
* All rights reserved. * |
| * * |
* * |
| * Updates: 16.4.2000, 8.11.2000, 5.10.2001, 21.10.2001 * |
* Updates: 16.4.2000, 8.11.2000, 5.10.2001, 21.10.2001, 5.12.2001 * |
| * * |
* * |
| **************************************************************************/ |
**************************************************************************/ |
| |
|
| Line 49 int strcnt_sepstr(const char *str, const |
|
| Line 49 int strcnt_sepstr(const char *str, const |
|
| * strrmcr() - removes all occurences of CR (Carriage Return) in string. |
* strrmcr() - removes all occurences of CR (Carriage Return) in string. |
| * strrmeol(), strrmcrlf(), strrmlfcr() - macros that removes all occurences |
* strrmeol(), strrmcrlf(), strrmlfcr() - macros that removes all occurences |
| * of CR and LF in string |
* of CR and LF in string |
| |
* str_left_trim(), ltrim() - removes white characters from beginning of string |
| |
* str_right_trim(), rtrim() - removes white characters from end of string |
| |
* str_trim(),strtrim(), trim() - removes white characters from beginning and |
| |
* end of string |
| */ |
*/ |
| |
|
| char *strdel(char *s); |
char *strdel(char *s); |
| |
|
| char *strrmlf(char *s); |
char *strrmlf(char *s); |
| char *strrmcr(char *s); |
char *strrmcr(char *s); |
| |
|
| #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); |
| |
char *str_right_trim(char *s); |
| |
|
| |
#define ltrim(s) str_left_trim(s) |
| |
#define rtrim(s) str_right_trim(s) |
| |
#define trim(s) rtrim(ltrim(s)) |
| |
#define strtrim(s) trim(s) |
| |
#define str_trim(s) trim(s) |
| |
|
| /* |
/* |
| * Comparing functions. |
* Comparing functions. |