Files
tp/include/JSystem/JMessage/locale.h
T
kipcode66 3b26aae532 Improving standard compiler compatibility (#2926)
* Adding explicit dolphin/ prefix & fix characters

* Rename ShiftJIS to SJIS

* Separate JASSeqReader read methods implementation between compilers.

* Fix pointer.h

* fix d_item_data typo

* fix gcn matching issue
2025-12-08 20:31:22 -08:00

27 lines
645 B
C++

#ifndef JMESSAGE_LOCALE_H
#define JMESSAGE_LOCALE_H
#include <dolphin/dolphin.h>
namespace JMessage {
/**
* @ingroup jsystem-jmessage
*
*/
struct locale {
typedef int (*parseCharacter_function)(const char**);
static bool isLeadByte_ShiftJIS(int c) {
return c >= 0x81 && (c <= 0x9F || (c >= 0xE0 && c <= 0xFC));
}
static int parseCharacter_1Byte(const char** ppszText);
static int parseCharacter_2Byte(const char** ppszText);
static int parseCharacter_ShiftJIS(const char** ppszText);
static int parseCharacter_UTF8(const char** ppszText);
};
}; // namespace JMessage
#endif /* JMESSAGE_LOCALE_H */