1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

Spelling: [libcdio] [API Change] converter

This commit is contained in:
Josh Soref 2013-06-20 10:54:09 -04:00
parent 9d10179091
commit c59e585147
2 changed files with 9 additions and 9 deletions

View file

@ -26,7 +26,7 @@
/** \brief Opaque characterset converter /** \brief Opaque characterset converter
*/ */
typedef struct cdio_charset_coverter_s cdio_charset_coverter_t; typedef struct cdio_charset_converter_s cdio_charset_converter_t;
/** \brief Create a charset converter /** \brief Create a charset converter
* \param src_charset Source charset * \param src_charset Source charset
@ -34,7 +34,7 @@ typedef struct cdio_charset_coverter_s cdio_charset_coverter_t;
* \returns A newly allocated charset converter * \returns A newly allocated charset converter
*/ */
cdio_charset_coverter_t * cdio_charset_converter_t *
cdio_charset_converter_create(const char * src_charset, cdio_charset_converter_create(const char * src_charset,
const char * dst_charset); const char * dst_charset);
@ -42,7 +42,7 @@ cdio_charset_converter_create(const char * src_charset,
* \param cnv A characterset converter * \param cnv A characterset converter
*/ */
void cdio_charset_converter_destroy(cdio_charset_coverter_t*cnv); void cdio_charset_converter_destroy(cdio_charset_converter_t*cnv);
/** \brief Convert a string from one character set to another /** \brief Convert a string from one character set to another
* \param cnv A charset converter * \param cnv A charset converter
@ -56,7 +56,7 @@ void cdio_charset_converter_destroy(cdio_charset_coverter_t*cnv);
* If you pass -1 for src_len, strlen() will be used. * If you pass -1 for src_len, strlen() will be used.
*/ */
bool cdio_charset_convert(cdio_charset_coverter_t*cnv, bool cdio_charset_convert(cdio_charset_converter_t*cnv,
char * src, int src_len, char * src, int src_len,
char ** dst, int * dst_len); char ** dst, int * dst_len);

View file

@ -116,16 +116,16 @@ FILE* fopen_utf8(const char* filename, const char* mode)
#ifdef HAVE_JOLIET #ifdef HAVE_JOLIET
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
#include <iconv.h> #include <iconv.h>
struct cdio_charset_coverter_s struct cdio_charset_converter_s
{ {
iconv_t ic; iconv_t ic;
}; };
cdio_charset_coverter_t * cdio_charset_converter_t *
cdio_charset_converter_create(const char * src_charset, cdio_charset_converter_create(const char * src_charset,
const char * dst_charset) const char * dst_charset)
{ {
cdio_charset_coverter_t * ret; cdio_charset_converter_t * ret;
ret = calloc(1, sizeof(*ret)); ret = calloc(1, sizeof(*ret));
ret->ic = iconv_open(dst_charset, src_charset); ret->ic = iconv_open(dst_charset, src_charset);
return ret; return ret;
@ -158,7 +158,7 @@ static void bgav_hexdump(uint8_t * data, int len, int linebreak)
} }
#endif #endif
void cdio_charset_converter_destroy(cdio_charset_coverter_t*cnv) void cdio_charset_converter_destroy(cdio_charset_converter_t*cnv)
{ {
iconv_close(cnv->ic); iconv_close(cnv->ic);
free(cnv); free(cnv);
@ -246,7 +246,7 @@ do_convert(iconv_t cd, const char * src, int src_len,
return true; return true;
} }
bool cdio_charset_convert(cdio_charset_coverter_t*cnv, bool cdio_charset_convert(cdio_charset_converter_t*cnv,
char * src, int src_len, char * src, int src_len,
char ** dst, int * dst_len) char ** dst, int * dst_len)
{ {