added wrapper functions - qse_httpd_mbsdup() and qse_httpd_mbsxdup()
This commit is contained in:
parent
514eee844f
commit
06e55b9c7e
@ -1357,6 +1357,18 @@ QSE_EXPORT qse_mchar_t* qse_httpd_strntombsdup (
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
|
||||
QSE_EXPORT qse_mchar_t* qse_httpd_mbsdup (
|
||||
qse_httpd_t* httpd,
|
||||
const qse_mchar_t* str
|
||||
);
|
||||
|
||||
QSE_EXPORT qse_mchar_t* qse_httpd_mbsxdup (
|
||||
qse_httpd_t* httpd,
|
||||
const qse_mchar_t* str,
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
QSE_EXPORT qse_mchar_t* qse_httpd_escapehtml (
|
||||
qse_httpd_t* httpd,
|
||||
const qse_mchar_t* str
|
||||
|
@ -325,6 +325,25 @@ qse_mchar_t* qse_httpd_strntombsdup (qse_httpd_t* httpd, const qse_char_t* str,
|
||||
return mptr;
|
||||
}
|
||||
|
||||
qse_mchar_t* qse_httpd_mbsdup (qse_httpd_t* httpd, const qse_mchar_t* str)
|
||||
{
|
||||
qse_mchar_t* mptr;
|
||||
|
||||
mptr = qse_mbsdup (str, httpd->mmgr);
|
||||
if (mptr == QSE_NULL) httpd->errnum = QSE_HTTPD_ENOMEM;
|
||||
|
||||
return mptr;
|
||||
}
|
||||
|
||||
qse_mchar_t* qse_httpd_mbsxdup (qse_httpd_t* httpd, const qse_mchar_t* str, qse_size_t len)
|
||||
{
|
||||
qse_mchar_t* mptr;
|
||||
|
||||
mptr = qse_mbsxdup (str, len, httpd->mmgr);
|
||||
if (mptr == QSE_NULL) httpd->errnum = QSE_HTTPD_ENOMEM;
|
||||
|
||||
return mptr;
|
||||
}
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
static qse_httpd_real_task_t* enqueue_task (
|
||||
|
Loading…
x
Reference in New Issue
Block a user