On Sun, Apr 19, 2009 at 07:55:26PM +0200, B. Smith-Mannschott wrote:
> I've been reworking my patch for #3404 and the first piece is ready
> for review, so I though I'd post it.
>
> [[[
> Issue #3404: Provide string function to normalize eol-style.
>
> * subversion/subversion/include/svn_string.h
> (svn_string_with_normalized_eol_style): new function
> * subversion/libsvn_subr/svn_string.c
> (svn_string_with_normalized_eol_style): new function
> ]]]
How is this different from svn_subst_translate_cstring2() ?
Quoting svn_subst.h:
/**
* Convenience routine: a variant of svn_subst_translate_stream3() which
* operates on cstrings.
*
* @since New in 1.3.
*
* Return a new string in @a *dst, allocated in @a pool, by copying the
* contents of string @a src, possibly performing line ending and keyword
* translations.
*
* If @a eol_str and @a keywords are @c NULL, behavior is just a byte-for-byte
* copy.
*/
svn_error_t *
svn_subst_translate_cstring2(const char *src,
const char **dst,
const char *eol_str,
svn_boolean_t repair,
apr_hash_t *keywords,
svn_boolean_t expand,
apr_pool_t *pool);
Stefan
Received on 2009-04-19 22:28:29 CEST