Deleted Added
full compact
svn_diff.h (251886) svn_diff.h (262250)
1/**
2 * @copyright
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 897 unchanged lines hidden (view full) ---

906 * @see svn_diff_hunk_readline_original_text()
907 * @see svn_diff_hunk_readline_modified_text()
908 *
909 * @since New in 1.7. */
910typedef struct svn_diff_hunk_t svn_diff_hunk_t;
911
912/**
913 * Allocate @a *stringbuf in @a result_pool, and read into it one line
1/**
2 * @copyright
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 897 unchanged lines hidden (view full) ---

906 * @see svn_diff_hunk_readline_original_text()
907 * @see svn_diff_hunk_readline_modified_text()
908 *
909 * @since New in 1.7. */
910typedef struct svn_diff_hunk_t svn_diff_hunk_t;
911
912/**
913 * Allocate @a *stringbuf in @a result_pool, and read into it one line
914 * of the diff text of @a hunk. The first line returned is the hunk header.
915 * Any subsequent lines are unidiff data (starting with '+', '-', or ' ').
914 * of the diff text of @a hunk. The hunk header is not returned only the
915 * unidiff data lines (starting with '+', '-', or ' ') are returned.
916 * If the @a hunk is being interpreted in reverse (i.e. the reverse
917 * parameter of svn_diff_parse_next_patch() was @c TRUE), the diff
918 * text will be returned in reversed form.
919 * The line-terminator is detected automatically and stored in @a *eol
920 * if @a eol is not NULL.
921 * If EOF is reached, set @a *eof to TRUE, and set @a *eol to NULL if the
922 * hunk does not end with a newline character and @a eol is not NULL.
923 * Temporary allocations will be performed in @a scratch_pool.
924 *
916 * If the @a hunk is being interpreted in reverse (i.e. the reverse
917 * parameter of svn_diff_parse_next_patch() was @c TRUE), the diff
918 * text will be returned in reversed form.
919 * The line-terminator is detected automatically and stored in @a *eol
920 * if @a eol is not NULL.
921 * If EOF is reached, set @a *eof to TRUE, and set @a *eol to NULL if the
922 * hunk does not end with a newline character and @a eol is not NULL.
923 * Temporary allocations will be performed in @a scratch_pool.
924 *
925 * @note The hunk header information can be retrievied with the following
926 * functions:
927 * @see svn_diff_hunk_get_original_start()
928 * @see svn_diff_hunk_get_original_length()
929 * @see svn_diff_hunk_get_modified_start()
930 * @see svn_diff_hunk_get_modified_length()
931 *
925 * @since New in 1.7.
926 */
927svn_error_t *
928svn_diff_hunk_readline_diff_text(svn_diff_hunk_t *hunk,
929 svn_stringbuf_t **stringbuf,
930 const char **eol,
931 svn_boolean_t *eof,
932 apr_pool_t *result_pool,

--- 186 unchanged lines hidden ---
932 * @since New in 1.7.
933 */
934svn_error_t *
935svn_diff_hunk_readline_diff_text(svn_diff_hunk_t *hunk,
936 svn_stringbuf_t **stringbuf,
937 const char **eol,
938 svn_boolean_t *eof,
939 apr_pool_t *result_pool,

--- 186 unchanged lines hidden ---