Main Page | Modules | Data Structures | File List | Data Fields | Globals

svn_cmdline.h File Reference

Support functions for command line programs. More...

#include <apr_want.h>
#include "svn_utf.h"

Go to the source code of this file.

Functions

int svn_cmdline_init (const char *progname, FILE *error_stream)
 Set up the locale for character conversion, and initialize APR.

svn_error_tsvn_cmdline_cstring_from_utf8 (const char **dest, const char *src, apr_pool_t *pool)
 Set *dest to an output-encoded C string from UTF-8 C string src; allocate *dest in pool.

const char * svn_cmdline_cstring_from_utf8_fuzzy (const char *src, apr_pool_t *pool)
 Like svn_utf_cstring_from_utf8_fuzzy, but converts to an output-encoded C string.

svn_error_tsvn_cmdline_cstring_to_utf8 (const char **dest, const char *src, apr_pool_t *pool)
 Set *dest to a UTF-8-encoded C string from input-encoded C string src; allocate *dest in pool.

svn_error_tsvn_cmdline_path_local_style_from_utf8 (const char **dest, const char *src, apr_pool_t *pool)
 Set *dest to an output-encoded natively-formatted path string from canonical path src; allocate *dest in pool.


Detailed Description

Support functions for command line programs.

Definition in file svn_cmdline.h.


Function Documentation

int svn_cmdline_init const char *  progname,
FILE *  error_stream
 

Set up the locale for character conversion, and initialize APR.

If error_stream is non-null, print error messages to the stream, using progname as the program name. Return EXIT_SUCCESS if successful, otherwise EXIT_FAILURE.

Note:
This function should be called exactly once at program startup, before calling any other APR or Subversion functions.


Generated on Wed Oct 13 23:55:35 2004 for Subversion by doxygen 1.3.4