DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
src/misc/iconvpp.cpp
00001 
00002 #include "dosbox.h"
00003 #include "iconvpp.hpp"
00004 
00005 const char *_Iconv_CommonBase::errstring(int x) {
00006     if (x >= 0)
00007         return "no error";
00008     else if (x == err_noinit)
00009         return "not initialized";
00010     else if (x == err_noroom)
00011         return "out of room";
00012     else if (x == err_notvalid)
00013         return "illegal multibyte sequence or invalid state";
00014     else if (x == err_incomplete)
00015         return "incomplete multibyte sequence";
00016 
00017     return "?";
00018 }
00019