GME  13
Functions
svn_string_t functions
String handling
Collaboration diagram for svn_string_t functions:

Functions

svn_string_tsvn_string_create (const char *cstring, apr_pool_t *pool)
svn_string_tsvn_string_create_empty (apr_pool_t *pool)
svn_string_tsvn_string_ncreate (const char *bytes, apr_size_t size, apr_pool_t *pool)
svn_string_tsvn_string_create_from_buf (const svn_stringbuf_t *strbuf, apr_pool_t *pool)
svn_string_tsvn_string_createf (apr_pool_t *pool, const char *fmt,...) __attribute__((format(printf
svn_string_t svn_string_tsvn_string_createv (apr_pool_t *pool, const char *fmt, va_list ap) __attribute__((format(printf
svn_string_t svn_string_t
svn_boolean_t 
svn_string_isempty (const svn_string_t *str)
svn_string_tsvn_string_dup (const svn_string_t *original_string, apr_pool_t *pool)
svn_boolean_t svn_string_compare (const svn_string_t *str1, const svn_string_t *str2)
apr_size_t svn_string_first_non_whitespace (const svn_string_t *str)
apr_size_t svn_string_find_char_backward (const svn_string_t *str, char ch)

Function Documentation

svn_boolean_t svn_string_compare ( const svn_string_t str1,
const svn_string_t str2 
)

Return TRUE iff str1 and str2 have identical length and data.

svn_string_t* svn_string_create ( const char *  cstring,
apr_pool_t pool 
)

Create a new string copied from the null-terminated C string cstring.

Create a new, empty string.

Since:
New in 1.8.

Create a new string copied from the stringbuf strbuf.

svn_string_t* svn_string_createf ( apr_pool_t pool,
const char *  fmt,
  ... 
)

Create a new string by printf-style formatting using fmt and the variable arguments, which are as appropriate for apr_psprintf().

svn_string_t svn_string_t* svn_string_createv ( apr_pool_t pool,
const char *  fmt,
va_list  ap 
)

Create a new string by printf-style formatting using fmt and ap. This is the same as svn_string_createf() except for the different way of passing the variable arguments.

svn_string_t* svn_string_dup ( const svn_string_t original_string,
apr_pool_t pool 
)

Return a duplicate of original_string.

apr_size_t svn_string_find_char_backward ( const svn_string_t str,
char  ch 
)

Return position of last occurrence of ch in str, or return str->len if no occurrence.

apr_size_t svn_string_first_non_whitespace ( const svn_string_t str)

Return offset of first non-whitespace character in str, or return str->len if none.

Return TRUE if str is empty (has length zero).

svn_string_t* svn_string_ncreate ( const char *  bytes,
apr_size_t  size,
apr_pool_t pool 
)

Create a new string copied from a generic string of bytes, bytes, of length size bytes. bytes is NOT assumed to be null-terminated, but the new string will be.