Main Page   Modules   Data Structures   File List   Data Fields  

c string functions

C strings. More...

Functions

apr_array_header_t * svn_cstring_split (const char *input, const char *sep_chars, svn_boolean_t chop_whitespace, apr_pool_t *pool)
 Divide input into substrings along sep_char boundaries, return an array of copies of those substrings, allocating both the array and the copies in pool. More...

void svn_cstring_split_append (apr_array_header_t *array, const char *input, const char *sep_chars, svn_boolean_t chop_whitespace, apr_pool_t *pool)
 Like svn_cstring_split(), but append to existing array instead of creating a new one. More...

svn_boolean_t svn_cstring_match_glob_list (const char *str, apr_array_header_t *list)
 Return TRUE iff str matches any of the elements of list, a list of zero or more glob patterns. More...


Detailed Description

C strings.


Function Documentation

svn_boolean_t svn_cstring_match_glob_list const char *    str,
apr_array_header_t *    list
 

Return TRUE iff str matches any of the elements of list, a list of zero or more glob patterns.

Use pool for temporary allocation.

apr_array_header_t* svn_cstring_split const char *    input,
const char *    sep_chars,
svn_boolean_t    chop_whitespace,
apr_pool_t *    pool
 

Divide input into substrings along sep_char boundaries, return an array of copies of those substrings, allocating both the array and the copies in pool.

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

If chop_whitespace is true, then remove leading and trailing whitespace from the returned strings.

input may not be null.

void svn_cstring_split_append apr_array_header_t *    array,
const char *    input,
const char *    sep_chars,
svn_boolean_t    chop_whitespace,
apr_pool_t *    pool
 

Like svn_cstring_split(), but append to existing array instead of creating a new one.

Allocate the copied substrings in pool (i.e., caller decides whether or not to pass array->pool as pool).


Generated on Tue Oct 19 09:49:48 2004 for Subversion by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002