mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
3b26aae532
* 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
27 lines
645 B
C++
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 */
|