mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 10:11:50 +00:00
20 lines
698 B
C
20 lines
698 B
C
#pragma once
|
|
|
|
int utf8_encode(int32_t codepoint, uint8_t *buffer, int *size);
|
|
int utf8_decode(const uint8_t *src, int *size);
|
|
int GetCharFromString(const uint8_t *&string);
|
|
inline int GetCharFromString(const char32_t *&string)
|
|
{
|
|
return *string++;
|
|
}
|
|
const char *MakeUTF8(const char *outline, int *numchars = nullptr); // returns a pointer to a static buffer, assuming that its caller will immediately process the result.
|
|
const char *MakeUTF8(int codepoint, int *psize = nullptr);
|
|
|
|
bool myislower(int code);
|
|
bool myisupper(int code);
|
|
int stripaccent(int code);
|
|
int getAlternative(int code);
|
|
|
|
extern uint16_t win1252map[];
|
|
extern uint16_t lowerforupper[65536];
|
|
extern uint16_t upperforlower[65536];
|