mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-15 07:01:21 +00:00
e2f5e8fe34
We'll need 'common' for something else.
13 lines
512 B
C
13 lines
512 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);
|
|
|
|
extern uint16_t win1252map[];
|