ucx/string.h

changeset 214
2bc19726c340
parent 210
6bdb04d87236
child 225
a1a068c2c4ef
     1.1 --- a/ucx/string.h	Mon Oct 26 14:09:45 2015 +0100
     1.2 +++ b/ucx/string.h	Tue Oct 27 15:29:34 2015 +0100
     1.3 @@ -214,6 +214,23 @@
     1.4  sstr_t sstrrchr(sstr_t string, int chr);
     1.5  
     1.6  /**
     1.7 + * Returns a substring starting at the location of the first occurrence of the
     1.8 + * specified string.
     1.9 + * 
    1.10 + * If the string does not contain the other string, an empty string is returned.
    1.11 + * 
    1.12 + * If <code>match</code> is an empty string, the complete <code>string</code> is
    1.13 + * returned.
    1.14 + * 
    1.15 + * @param string the string to be scanned
    1.16 + * @param match  string containing the sequence of characters to match
    1.17 + * @return       a substring starting at the first occurrence of
    1.18 + *               <code>match</code>, or an empty string, if the sequence is not
    1.19 + *               present in <code>string</code>
    1.20 + */
    1.21 +sstr_t sstrstr(sstr_t string, sstr_t match);
    1.22 +
    1.23 +/**
    1.24   * Splits a string into parts by using a delimiter string.
    1.25   * 
    1.26   * This function will return <code>NULL</code>, if one of the following happens:

mercurial