svn_diff_hunk_readline_diff_text

Function svn_diff_hunk_readline_diff_text 

Source
pub unsafe extern "C" fn svn_diff_hunk_readline_diff_text(
    hunk: *mut svn_diff_hunk_t,
    stringbuf: *mut *mut svn_stringbuf_t,
    eol: *mut *const c_char,
    eof: *mut svn_boolean_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Allocate @a *stringbuf in @a result_pool, and read into it one line of the diff text of @a hunk. The hunk header is not returned only the unidiff data lines (starting with ‘+’, ‘-’, or ’ ’) are returned. If the @a hunk is being interpreted in reverse (i.e. the reverse parameter of svn_diff_parse_next_patch() was @c TRUE), the diff text will be returned in reversed form. The line-terminator is detected automatically and stored in @a *eol if @a eol is not NULL. If EOF is reached, set @a *eof to TRUE, and set @a *eol to NULL if the hunk does not end with a newline character and @a eol is not NULL. Temporary allocations will be performed in @a scratch_pool.

@note The hunk header information can be retrieved with the following functions: @see svn_diff_hunk_get_original_start() @see svn_diff_hunk_get_original_length() @see svn_diff_hunk_get_modified_start() @see svn_diff_hunk_get_modified_length()

@since New in 1.7.