svn_cstring_split

Function svn_cstring_split 

Source
pub unsafe extern "C" fn svn_cstring_split(
    input: *const c_char,
    sep_chars: *const c_char,
    chop_whitespace: svn_boolean_t,
    pool: *mut apr_pool_t,
) -> *mut apr_array_header_t
Expand description

Divide @a input into substrings, interpreting any char from @a sep as a token separator.

Return an array of copies of those substrings (plain const char*), allocating both the array and the copies in @a pool.

None of the elements added to the array contain any of the characters in @a sep_chars, and none of the new elements are empty (thus, it is possible that the returned array will have length zero).

If @a chop_whitespace is TRUE, then remove leading and trailing whitespace from the returned strings.