212 * @see sstrsubs() |
212 * @see sstrsubs() |
213 */ |
213 */ |
214 sstr_t sstrrchr(sstr_t string, int chr); |
214 sstr_t sstrrchr(sstr_t string, int chr); |
215 |
215 |
216 /** |
216 /** |
|
217 * Returns a substring starting at the location of the first occurrence of the |
|
218 * specified string. |
|
219 * |
|
220 * If the string does not contain the other string, an empty string is returned. |
|
221 * |
|
222 * If <code>match</code> is an empty string, the complete <code>string</code> is |
|
223 * returned. |
|
224 * |
|
225 * @param string the string to be scanned |
|
226 * @param match string containing the sequence of characters to match |
|
227 * @return a substring starting at the first occurrence of |
|
228 * <code>match</code>, or an empty string, if the sequence is not |
|
229 * present in <code>string</code> |
|
230 */ |
|
231 sstr_t sstrstr(sstr_t string, sstr_t match); |
|
232 |
|
233 /** |
217 * Splits a string into parts by using a delimiter string. |
234 * Splits a string into parts by using a delimiter string. |
218 * |
235 * |
219 * This function will return <code>NULL</code>, if one of the following happens: |
236 * This function will return <code>NULL</code>, if one of the following happens: |
220 * <ul> |
237 * <ul> |
221 * <li>the string length is zero</li> |
238 * <li>the string length is zero</li> |