added qse_wcsatombsdup()

This commit is contained in:
2011-12-02 16:05:16 +00:00
parent f922c5858d
commit c2264998f2
15 changed files with 855 additions and 77 deletions

View File

@ -33,9 +33,12 @@ enum qse_fs_errnum_t
QSE_FS_ENOMEM,
QSE_FS_EINVAL,
QSE_FS_EACCES,
QSE_FS_EPERM,
QSE_FS_ENOENT,
QSE_FS_ENODIR,
QSE_FS_EISDIR,
QSE_FS_EEXIST,
QSE_FS_EXDEV,
QSE_FS_ESYSTEM
};
typedef enum qse_fs_errnum_t qse_fs_errnum_t;

View File

@ -2387,24 +2387,30 @@ qse_size_t qse_wcsntombsn (
);
/**
* The qse_mbstowcs_strict() function performs the same as the qse_mbstowcs()
* The qse_mbstowcsrigid() function performs the same as the qse_mbstowcs()
* function except that it returns an error if it can't fully convert the
* input string and/or the buffer is not large enough.
* @return 0 on success, -1 on failure.
*
* @return 0 on success,
* -1 on failure for truncation,
* -2 on failure for invalid/incomplete input seqence.
*/
int qse_mbstowcs_strict (
int qse_mbstowcsrigid (
const qse_mchar_t* mbs,
qse_wchar_t* wcs,
qse_size_t wcslen
);
/**
* The qse_wcstombs_strict() function performs the same as the qse_wcstombs()
* The qse_wcstombsrigid() function performs the same as the qse_wcstombs()
* function except that it returns an error if it can't fully convert the
* input string and/or the buffer is not large enough.
* @return 0 on success, -1 on failure.
*
* @return 0 on success,
* -1 on failure for truncation,
* -2 on failure for erroneous input seqence.
*/
int qse_wcstombs_strict (
int qse_wcstombsrigid (
const qse_wchar_t* wcs,
qse_mchar_t* mbs,
qse_size_t mbslen
@ -2413,12 +2419,18 @@ int qse_wcstombs_strict (
qse_wchar_t* qse_mbstowcsdup (
const qse_mchar_t* mbs,
qse_mmgr_t* mmgr
qse_mmgr_t* mmgr
);
qse_mchar_t* qse_wcstombsdup (
const qse_wchar_t* wcs,
qse_mmgr_t* mmgr
qse_mmgr_t* mmgr
);
qse_mchar_t* qse_wcsatombsdup (
const qse_wchar_t* wcs[],
qse_mmgr_t* mmgr
);
QSE_DEFINE_COMMON_FUNCTIONS (mbs)