mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-12-03 19:35:38 +00:00
23 lines
622 B
C
23 lines
622 B
C
|
#pragma once
|
||
|
#ifndef ES_CORE_STRING_UTIL_H
|
||
|
#define ES_CORE_STRING_UTIL_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace Utils
|
||
|
{
|
||
|
namespace String
|
||
|
{
|
||
|
unsigned int chars2Unicode(const std::string& _string, size_t& _cursor);
|
||
|
std::string unicode2Chars(const unsigned int _unicode);
|
||
|
size_t nextCursor(const std::string& _string, const size_t _cursor);
|
||
|
size_t prevCursor(const std::string& _string, const size_t _cursor);
|
||
|
size_t moveCursor(const std::string& _string, const size_t _cursor, const int _amount);
|
||
|
void trim(std::string& _string);
|
||
|
|
||
|
} // String::
|
||
|
|
||
|
} // Utils::
|
||
|
|
||
|
#endif // ES_CORE_STRING_UTIL_H
|