[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] #3404: string function to normalize eol-style

From: Stefan Sperling <stsp_at_elego.de>
Date: Sun, 19 Apr 2009 21:28:03 +0100

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.