mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(unicode): add 8 SUni functions
This commit is contained in:
parent
fe35b03cb7
commit
931096bb50
7 changed files with 1924 additions and 610 deletions
|
|
@ -2,6 +2,25 @@
|
|||
#define STORM_UNICODE_HPP
|
||||
|
||||
#include "Core.hpp"
|
||||
#include <cstddef>
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertUTF16ToDos(char* dest, const char16_t* source, uint32_t destsize);
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertUTF16ToMac(char* dest, const char16_t* source, uint32_t destsize);
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertUTF16ToWin(char* dest, const char16_t* source, uint32_t destsize);
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertDosToUTF16(char16_t* dest, const char* source, uint32_t destsize);
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertMacToUTF16(char16_t* dest, const char* source, uint32_t destsize);
|
||||
|
||||
ptrdiff_t STORMAPI SUniConvertWinToUTF16(char16_t* dest, const char* source, uint32_t destsize);
|
||||
|
||||
// Assumes index is within the bounds of utf8String
|
||||
int32_t STORMAPI SUniFindAfterUTF8Chr(const char* utf8String, int32_t index);
|
||||
|
||||
// Assumes index is within the bounds of utf8String
|
||||
int32_t STORMAPI SUniFindUTF8ChrStart(const char* utf8String, int32_t index);
|
||||
|
||||
uint32_t STORMAPI SUniSGetUTF8(const uint8_t* strptr, int32_t* chars);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue