Function
Ibissource_strip_prefix
since: 0.8
Declaration [src]
char*
ibis_source_strip_prefix (
const char* source,
const char* prefixes
)
Description [src]
Removes any characters from the start of source that are in prefixes until
a character that is not in prefixes is found.
If for some reason, source is a single character that’s in prefixes, an
empty string will be returned.
prefixes should be in descending order, from the prefix that gives the most
privileges to the prefix that gives the least. The server will send them in
this order. See PREFIX
Parameter for more information.
Available since: 0.8
Parameters
source-
Type:
const char*The source to strip.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. prefixes-
Type:
const char*The list of prefixes that should be stripped.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.