| version 1.8, 2001/12/16 20:44:37 |
version 1.9, 2001/12/20 00:29:26 |
|
|
| * * |
* * |
| * Special string functions and macros header file * |
* Special string functions and macros header file * |
| * * |
* * |
| * Programmed by Ondrej Jombik * |
* Programmed by Ondrej Jombik <nepto@pobox.sk> * |
| * (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, 5.12.2001 * |
* Updates: 16.4.2000, 8.11.2000, 5.10.2001, 21.10.2001, 5.12.2001 * |
| |
* 20.12.2001 - str_white_str() added (thanks to <rbarlik@yahoo.com>) * |
| * * |
* * |
| **************************************************************************/ |
**************************************************************************/ |
| |
|
|
|
| * that substring is located in string) |
* that substring is located in string) |
| * strestr() - locate a end of substring |
* strestr() - locate a end of substring |
| * strcasestr(), stristr() - locate a substring ignoring case |
* strcasestr(), stristr() - locate a substring ignoring case |
| |
* str_white_str() - search substr in str; every white char in substr can be |
| |
* substitued with one or more white chars in str; in size, |
| |
* if not NULL, will be the length of matched patern |
| |
* strwstr() - the same as function above but without size parameter |
| */ |
*/ |
| |
|
| #define strendstr(__s1,__s2) (strstr(__s1,__s2) + strlen(__s2)) |
#define strendstr(__s1,__s2) (strstr(__s1,__s2) + strlen(__s2)) |
| Line 31 char *stristr(const char *s1, const char |
|
| Line 36 char *stristr(const char *s1, const char |
|
| |
|
| #define strcasestr(__s1, __s2) stristr(__s1, __s2) |
#define strcasestr(__s1, __s2) stristr(__s1, __s2) |
| |
|
| char *str_white_str(char *s, int *size); |
char *str_white_str(char *str, char *substr, int *size); |
| |
|
| #define strwhitestr(s, size) str_white_str(s, size) |
#define strwhitestr(str, substr, size) str_white_str(str, substr, size) |
| #define strwstr(s) str_white_str(s, NULL) |
#define strwstr(str, substr) str_white_str(str, substr, NULL) |
| |
|
| /* |
/* |
| * Counting functions. |
* Counting functions. |