Files
dusklight/include/JSystem/JMessage/locale.h
T
TakaRikka dfa8efa97b project cleanup (#2895)
* 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
2025-11-30 15:23:42 -07:00

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 */