FreeBSD/contrib/subversion/subversion/libsvn_subr/utf.c
/* Verify that the NULL terminated sequence DATA is valid UTF-8.
   If it is not, return an error with code APR_EINVAL. */
Verify that the NULL terminated sequence DATA is valid UTF-8.
If it is not, return an error with code APR_EINVAL.
Verify that the NULL terminated sequence DATA is valid UTF - 8 . If it is not return an error with code APR_EINVAL .
static svn_error_t *
check_cstring_utf8(const char *data, apr_pool_t *pool)
{
  if (! svn_utf__cstring_is_valid(data))
    return invalid_utf8(data, strlen(data), pool);
  return SVN_NO_ERROR;
}
static svn_error_t * check_cstring_utf8 ( const char * data , apr_pool_t * pool ) { if ( ! svn_utf__cstring_is_valid ( data ) ) return invalid_utf8 ( data , strlen ( data ) , pool ) ; return SVN_NO_ERROR ; }
Verify that the NULL terminated sequence DATA is valid UTF-8.
Verify that the NULL terminated sequence DATA is valid UTF - 8 .