2020-11-22 00:12:24 -06:00
|
|
|
#ifndef STORM_UNICODE_HPP
|
|
|
|
|
#define STORM_UNICODE_HPP
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
|
|
uint32_t SUniSGetUTF8(const uint8_t* strptr, int32_t* chars);
|
|
|
|
|
|
2020-11-22 00:24:32 -06:00
|
|
|
void SUniSPutUTF8(uint32_t c, char* strptr);
|
|
|
|
|
|
2025-03-31 14:31:31 -04:00
|
|
|
int32_t SUniConvertUTF16to8(uint8_t* dst, uint32_t dstmaxchars, const uint16_t* src, uint32_t srcmaxchars, uint32_t* dstchars, uint32_t* srcchars);
|
|
|
|
|
|
|
|
|
|
int32_t SUniConvertUTF8to16(uint16_t* dst, uint32_t dstmaxchars, const uint8_t* src, uint32_t srcmaxchars, uint32_t* dstchars, uint32_t* srcchars);
|
|
|
|
|
|
2020-11-22 00:12:24 -06:00
|
|
|
#endif
|