FreeBSD/contrib/subversion/subversion/libsvn_subr/user.c
/* Return a UTF8 version of STR, or NULL on error.
   Use POOL for any necessary allocation. */
Return a UTF8 version of STR, or NULL on error.
Use POOL for any necessary allocation.
Return a UTF8 version of STR or NULL on error . Use POOL for any necessary allocation .
static const char *
utf8_or_nothing(const char *str, apr_pool_t *pool) {
  if (str)
    {
      const char *utf8_str;
      svn_error_t *err = svn_utf_cstring_to_utf8(&utf8_str, str, pool);
      if (! err)
        return utf8_str;
      svn_error_clear(err);
    }
  return NULL;
}
static const char * utf8_or_nothing ( const char * str , apr_pool_t * pool ) { if ( str ) { const char * utf8_str ; svn_error_t * err = svn_utf_cstring_to_utf8 ( & utf8_str , str , pool ) ; if ( ! err ) return utf8_str ; svn_error_clear ( err ) ; } return NULL ; }
Return a UTF8 version of STR, or NULL on error.
Return a UTF8 version of STR or NULL on error .