axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_stream_remove ( char *  chunk,
const char *  value,
axl_bool  first 

Allows to remote occurences of value from the provided string (chunk).

The function do not allocate new memory for the result. All operations are applied to the string received (chunk).

The idea behind the functions is to allow removing values from the string, joining remaining content. For example, removing "-" from the string "iso-8859-15" yields "iso885915".

chunkThe string that holds values to be removed.
valueThe value to be removed.
firstIf only the first ocurrence of value must be removed, otherwise all ocurrences will be removed from the string.

References axl_cmp(), axl_memcmp(), and axl_return_if_fail.