mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 21:41:44 +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];
|