mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Added stringutil module
This commit is contained in:
parent
d5dc134737
commit
ee52e412fa
2 changed files with 82 additions and 0 deletions
13
src/util/stringutil.h
Normal file
13
src/util/stringutil.h
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue