mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
19 lines
456 B
C++
19 lines
456 B
C++
|
|
#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 "?";
|
|
}
|
|
|