mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
move
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
|
||||
#include "iconvpp.hpp"
|
||||
|
||||
const char *_Iconv_CommonBase::errstring(int x) {
|
||||
if (x >= 0)
|
||||
return "no error";
|
||||
else if (x == err_noinit)
|
||||
return "not initialized";
|
||||
else if (x == err_noroom)
|
||||
return "out of room";
|
||||
else if (x == err_notvalid)
|
||||
return "illegal multibyte sequence or invalid state";
|
||||
else if (x == err_incomplete)
|
||||
return "incomplete multibyte sequence";
|
||||
|
||||
return "?";
|
||||
}
|
||||
|
||||
|
@@ -41,20 +41,7 @@
|
||||
|
||||
class _Iconv_CommonBase {
|
||||
public:
|
||||
static const char *errstring(int x) {
|
||||
if (x >= 0)
|
||||
return "no error";
|
||||
else if (x == err_noinit)
|
||||
return "not initialized";
|
||||
else if (x == err_noroom)
|
||||
return "out of room";
|
||||
else if (x == err_notvalid)
|
||||
return "illegal multibyte sequence or invalid state";
|
||||
else if (x == err_incomplete)
|
||||
return "incomplete multibyte sequence";
|
||||
|
||||
return "?";
|
||||
}
|
||||
static const char *errstring(int x);
|
||||
inline size_t get_src_last_read(void) const { /* in units of sizeof(srcT) */
|
||||
return src_adv;
|
||||
}
|
||||
|
Reference in New Issue
Block a user