Files
dusklight/libs/JSystem/include/JSystem/JMessage/locale.h
T
Luke Street 9649319ec4 Reorganize library code into libs/ (#3119)
* 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
2026-03-01 14:35:36 -08:00

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