mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 15:05:06 -04:00
dfa8efa97b
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
27 lines
637 B
C++
27 lines
637 B
C++
#ifndef JMESSAGE_LOCALE_H
|
|
#define JMESSAGE_LOCALE_H
|
|
|
|
#include <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 */
|