Subversion 1.6.16
Functions

c string functions

String handling

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_chars boundaries, return an array of copies of those substrings, allocating both the array and the copies in pool.
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.
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.
int svn_cstring_count_newlines (const char *msg)
 Return the number of line breaks in msg, allowing any kind of newline termination (CR, LF, CRLF, or LFCR), even inconsistent.
char * svn_cstring_join (const apr_array_header_t *strings, const char *separator, apr_pool_t *pool)
 Return a cstring which is the concatenation of strings (an array of char *) each followed by separator (that is, separator will also end the resulting string).
int svn_cstring_casecmp (const char *str1, const char *str2)
 Compare two strings atr1 and atr2, treating case-equivalent unaccented Latin (ASCII subset) letters as equal.

Detailed Description

C strings.


Function Documentation

int svn_cstring_casecmp ( const char *  str1,
const char *  str2 
)

Compare two strings atr1 and atr2, treating case-equivalent unaccented Latin (ASCII subset) letters as equal.

Returns in integer greater than, equal to, or less than 0, according to whether str1 is considered greater than, equal to, or less than str2.

Since:
New in 1.5.
int svn_cstring_count_newlines ( const char *  msg)

Return the number of line breaks in msg, allowing any kind of newline termination (CR, LF, CRLF, or LFCR), even inconsistent.

Since:
New in 1.2.
char* svn_cstring_join ( const apr_array_header_t *  strings,
const char *  separator,
apr_pool_t *  pool 
)

Return a cstring which is the concatenation of strings (an array of char *) each followed by separator (that is, separator will also end the resulting string).

Allocate the result in pool. If strings is empty, then return the empty string.

Since:
New in 1.2.
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_chars 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.

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).

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines