Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre libplaton/platon/str/strplus.h medzi verziami 1.15 a 1.16

verzia 1.15, 2002/03/28 21:41:56 verzia 1.16, 2002/08/16 20:31:43
Riadok 41  extern "C" {
Riadok 41  extern "C" {
   
 #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)
Riadok 59  char *str_white_str(char *str, char *sub
Riadok 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
Riadok 79  int strcnt_sepstr(const char *str, const
Riadok 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)
Riadok 104  char *str_trim_whitechars(char *s);
Riadok 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
Riadok 112  char *strins(char *str, char *ins);
Riadok 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
 }  }

Legend:
Odstranené z verzie1.15  
zmenené riadky
  Pridané vo verzii1.16

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok