mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-10 18:46:45 -04:00
9649319ec4
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
31 lines
700 B
C++
31 lines
700 B
C++
#ifndef JMESSAGE_LOCALE_H
|
|
#define JMESSAGE_LOCALE_H
|
|
|
|
#ifdef __REVOLUTION_SDK__
|
|
#include <revolution.h>
|
|
#else
|
|
#include <dolphin.h>
|
|
#endif
|
|
|
|
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 */
|