ucx/string.h

changeset 148
c27c2425c0b1
parent 146
aa376dba1ba8
child 149
3bf87676d42d
     1.1 --- a/ucx/string.h	Fri Aug 16 14:48:58 2013 +0200
     1.2 +++ b/ucx/string.h	Mon Aug 19 10:44:11 2013 +0200
     1.3 @@ -195,13 +195,27 @@
     1.4   * 
     1.5   * @param string the string where to locate the character
     1.6   * @param chr    the character to locate
     1.7 - * @return       a substring starting at the least location of <code>chr</code>
     1.8 + * @return       a substring starting at the first location of <code>chr</code>
     1.9   * 
    1.10   * @see sstrsubs()
    1.11   */
    1.12  sstr_t sstrchr(sstr_t string, int chr);
    1.13  
    1.14  /**
    1.15 + * Returns a substring starting at the location of the last occurrence of the
    1.16 + * specified character.
    1.17 + * 
    1.18 + * If the string does not contain the character, an empty string is returned.
    1.19 + * 
    1.20 + * @param string the string where to locate the character
    1.21 + * @param chr    the character to locate
    1.22 + * @return       a substring starting at the last location of <code>chr</code>
    1.23 + * 
    1.24 + * @see sstrsubs()
    1.25 + */
    1.26 +sstr_t sstrrchr(sstr_t string, int chr);
    1.27 +
    1.28 +/**
    1.29   * Splits a string into parts by using a delimiter string.
    1.30   * 
    1.31   * This function will return <code>NULL</code>, if one of the following happens:

mercurial