ucx/string.h

changeset 174
e7e56c56d126
parent 110
53895e9a4bbb
child 255
bf19378aed58
equal deleted inserted replaced
173:947843245525 174:e7e56c56d126
381 * @param suffix the suffix the string should have 381 * @param suffix the suffix the string should have
382 * @return 1, if and only if the string has the specified suffix, 0 otherwise 382 * @return 1, if and only if the string has the specified suffix, 0 otherwise
383 */ 383 */
384 int sstrsuffix(sstr_t string, sstr_t suffix); 384 int sstrsuffix(sstr_t string, sstr_t suffix);
385 385
386 /**
387 * Returns a lower case version of a string.
388 *
389 * This function creates a duplicate of the input string, first. See the
390 * documentation of sstrdup() for the implications.
391 *
392 * @param string the input string
393 * @return the resulting lower case string
394 * @see sstrdup()
395 */
396 sstr_t sstrlower(sstr_t string);
397
398 /**
399 * Returns a lower case version of a string.
400 *
401 * This function creates a duplicate of the input string, first. See the
402 * documentation of sstrdup_a() for the implications.
403 *
404 * @param allocator the allocator used for duplicating the string
405 * @param string the input string
406 * @return the resulting lower case string
407 * @see sstrdup_a()
408 */
409 sstr_t sstrlower_a(UcxAllocator *allocator, sstr_t string);
410
411 /**
412 * Returns a upper case version of a string.
413 *
414 * This function creates a duplicate of the input string, first. See the
415 * documentation of sstrdup() for the implications.
416 *
417 * @param string the input string
418 * @return the resulting upper case string
419 * @see sstrdup()
420 */
421 sstr_t sstrupper(sstr_t string);
422
423 /**
424 * Returns a upper case version of a string.
425 *
426 * This function creates a duplicate of the input string, first. See the
427 * documentation of sstrdup_a() for the implications.
428 *
429 * @param allocator the allocator used for duplicating the string
430 * @param string the input string
431 * @return the resulting upper case string
432 * @see sstrdup_a()
433 */
434 sstr_t sstrupper_a(UcxAllocator *allocator, sstr_t string);
435
386 #ifdef __cplusplus 436 #ifdef __cplusplus
387 } 437 }
388 #endif 438 #endif
389 439
390 #endif /* UCX_STRING_H */ 440 #endif /* UCX_STRING_H */

mercurial