⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svn_subst.h

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
 * perform the same operation: if @a expand is @c FALSE, both * contract keywords.  One stream supports both read and write * operations.  Reads and writes may be mixed. * * The stream returned is allocated in @a pool. * * @since New in 1.4. */svn_stream_t *svn_subst_stream_translated(svn_stream_t *stream,                            const char *eol_str,                            svn_boolean_t repair,                            apr_hash_t *keywords,                            svn_boolean_t expand,                            apr_pool_t *pool);/** Similar to svn_subst_translate_stream3() except relies upon a * @c svn_subst_keywords_t struct instead of a hash for the keywords. * * @deprecated Provided for backward compatibility with the 1.2 API. */svn_error_t *svn_subst_translate_stream2(svn_stream_t *src,                            svn_stream_t *dst,                            const char *eol_str,                            svn_boolean_t repair,                            const svn_subst_keywords_t *keywords,                            svn_boolean_t expand,                            apr_pool_t *pool);/** * Same as svn_subst_translate_stream2(), but does not take a @a pool * argument, instead creates a temporary subpool of the global pool, and * destroys it before returning. * * @deprecated Provided for backward compatibility with the 1.1 API. */svn_error_t *svn_subst_translate_stream(svn_stream_t *src,                           svn_stream_t *dst,                           const char *eol_str,                           svn_boolean_t repair,                           const svn_subst_keywords_t *keywords,                           svn_boolean_t expand);/** * Translates the file at path @a src into a file at path @a dst.  The * parameters @a *eol_str, @a repair, @a *keywords and @a expand are * defined the same as in svn_subst_translate_stream3(). * * In addition, it will create a special file from normal form or * translate one to normal form if @a special is @c TRUE. * * Copy the contents of file-path @a src to file-path @a dst atomically, * either creating @a dst (or overwriting @a dst if it exists), possibly * performing line ending and keyword translations. * * If anything goes wrong during the copy, attempt to delete @a dst (if * it exists). * * If @a eol_str and @a keywords are @c NULL, behavior is just a byte-for-byte * copy. * * @since New in 1.3. */svn_error_t *svn_subst_copy_and_translate3(const char *src,                              const char *dst,                              const char *eol_str,                              svn_boolean_t repair,                              apr_hash_t *keywords,                              svn_boolean_t expand,                              svn_boolean_t special,                              apr_pool_t *pool);/** * Similar to svn_subst_copy_and_translate3() except that @a keywords is a * @c svn_subst_keywords_t struct instead of a keywords hash. * * @deprecated Provided for backward compatibility with the 1.2 API. * @since New in 1.1. */svn_error_t *svn_subst_copy_and_translate2(const char *src,                              const char *dst,                              const char *eol_str,                              svn_boolean_t repair,                              const svn_subst_keywords_t *keywords,                              svn_boolean_t expand,                              svn_boolean_t special,                              apr_pool_t *pool);/** * Similar to svn_subst_copy_and_translate2() except that @a special is * always set to @c FALSE. * * @deprecated Provided for backward compatibility with the 1.0 API. */svn_error_t *svn_subst_copy_and_translate(const char *src,                             const char *dst,                             const char *eol_str,                             svn_boolean_t repair,                             const svn_subst_keywords_t *keywords,                             svn_boolean_t expand,                             apr_pool_t *pool);/** * 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);/** * Similar to svn_subst_translate_cstring2() except that @a keywords is a * @c svn_subst_keywords_t struct instead of a keywords hash. * * @deprecated Provided for backward compatibility with the 1.2 API. */svn_error_t *svn_subst_translate_cstring(const char *src,                            const char **dst,                            const char *eol_str,                            svn_boolean_t repair,                            const svn_subst_keywords_t *keywords,                            svn_boolean_t expand,                            apr_pool_t *pool);/** * Translates a file @a src in working copy form to a file @a dst in * normal form. * * The values specified for @a eol_style, @a *eol_str, @a keywords and * @a special, should be the ones used to translate the file to its * working copy form.  Usually, these are the values specified by the * user in the files' properties. * * Inconsistent line endings in the file will be automatically repaired * (made consistent) for some eol styles.  For all others, an error is * returned.  By setting @a always_repair_eols to @c TRUE, eols will be * made consistent even for those styles which don't have it by default. * * @note To translate a file FROM normal form, use *       svn_subst_copy_and_translate3(). * * @since New in 1.4 * */svn_error_t *svn_subst_translate_to_normal_form(const char *src,                                   const char *dst,                                   svn_subst_eol_style_t eol_style,                                   const char *eol_str,                                   svn_boolean_t always_repair_eols,                                   apr_hash_t *keywords,                                   svn_boolean_t special,                                   apr_pool_t *pool);/** * Set @a *stream_p to a stream that detranslates the file @a src from * working copy form to normal form, allocated in @a pool. * * The values specified for @a eol_style, @a *eol_str, @a keywords and * @a special, should be the ones used to translate the file to its * working copy form.  Usually, these are the values specified by the * user in the files' properties. * * Inconsistent line endings in the file will be automatically repaired * (made consistent) for some eol styles.  For all others, an error is * returned.  By setting @a always_repair_eols to @c TRUE, eols will be * made consistent even for those styles which don't have it by default. * * @since New in 1.4. * */svn_error_t *svn_subst_stream_detranslated(svn_stream_t **stream_p,                               const char *src,                              svn_subst_eol_style_t eol_style,                              const char *eol_str,                              svn_boolean_t always_repair_eols,                              apr_hash_t *keywords,                              svn_boolean_t special,                              apr_pool_t *pool);/* EOL conversion and character encodings *//** Translate the data in @a value (assumed to be in encoded in charset * @a encoding) to UTF8 and LF line-endings.  If @a encoding is @c NULL,  * then assume that @a value is in the system-default language encoding. * Return the translated data in @a *new_value, allocated in @a pool.   */svn_error_t *svn_subst_translate_string(svn_string_t **new_value,                                        const svn_string_t *value,                                        const char *encoding,                                        apr_pool_t *pool);/** Translate the data in @a value from UTF8 and LF line-endings into * native locale and native line-endings, or to the output locale if * @a for_output is TRUE.  Return the translated data in @a * *new_value, allocated in @a pool. */svn_error_t *svn_subst_detranslate_string(svn_string_t **new_value,                                          const svn_string_t *value,                                          svn_boolean_t for_stdout,                                          apr_pool_t *pool);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* SVN_SUBST_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -