Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libcfg+/src/platon/str/strplus.h between version 1.4 and 1.5

version 1.4, 2001/10/10 17:59:53 version 1.5, 2001/10/21 16:44:22
Line 4 
Line 4 
  *                                                                        *   *                                                                        *
  *  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., All rights reserved.          *   *  (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                              *   *  Updates: 16.4.2000, 8.11.2000, 5.10.2001, 21.10.2001                  *
  *                                                                        *   *                                                                        *
  **************************************************************************/   **************************************************************************/
   
 #ifndef _PLATON_STR_STRPLUS_H  #ifndef _PLATON_STR_STRPLUS_H
 #define _PLATON_STR_STRPLUS_H  #define _PLATON_STR_STRPLUS_H
   
 #define strendstr(__s1,__s2) (strstr(__s1,__s2)+strlen(__s2))  /*
    * Locate functions.
    *
    * strendstr() - macro that locates end of substring (use only if you are sure,
    *               that substring is located in string)
    * strestr() - locate a end of substring
    * stristr() - locate a substring ignoring case
    */
   
 #define strrmeol(__s) strrmcr(strrmlf(__s))  #define strendstr(__s1,__s2) (strstr(__s1,__s2) + strlen(__s2))
 #define strrmcrlf(__s) strrmeol(__s)  
 #define strrmlfcr(__s) strrmeol(__s)  
   
 char *strestr(const char *s1, const char *s2);  char *strestr(const char *s1, const char *s2);
 int strcnt(const char *s, const char c);  char *stristr(const char *s1, const char *s2);
   
   /*
    * Counting functions.
    *
    * strcnt() - count number of characters in string
    * strcnt_str() - count number of substrings in string
    * strcnt_sepstr() - count number of separate substrings in string
    */
   
   int strcnt(const char *str, const char c);
   int strcnt_str(const char *str, const char *substr);
   int strcnt_sepstr(const char *str, const char *substr);
   
   /*
    * Removing functions.
    *
    * strdel() - deletes a one character at position of s
    * strrmlf() - removes all occurences of LF (Line Feed) in string
    * strrmcr() - removes all occurences of CR (Carriage Return) in string.
    * strrmeol(), strrmcrlf(), strrmlfcr() - macros that removes all occurences
    *                                        of CR and LF in 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 strrmcrlf(__s) strrmeol(__s)
   #define strrmlfcr(__s) strrmeol(__s)
   
   /*
    * Comparing functions.
    *
    * strrcmp() - compares two string in reverse order
    */
   
 int strrcmp(const char *s1, const char *s2);  int strrcmp(const char *s1, const char *s2);
 char *stristr(const char *s1, const char *s2);  
   
 #endif /* #ifndef _PLATON_STR_STRPLUS_H */  #endif /* #ifndef _PLATON_STR_STRPLUS_H */
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top