Added stringutil module

This commit is contained in:
MihailRis
2023-11-09 15:03:50 +03:00
parent d5dc134737
commit ee52e412fa
2 changed files with 82 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef UTIL_STRINGUTIL_H_
#define UTIL_STRINGUTIL_H_
#include <string>
#include "../typedefs.h"
extern std::wstring lfill(std::wstring s, int length, wchar_t c);
extern std::wstring rfill(std::wstring s, int length, wchar_t c);
extern uint encode_utf8(uint c, ubyte* bytes);
extern std::string wstr2str_utf8(const std::wstring ws);
#endif // UTIL_STRINGUTIL_H_