2017-11-15 15:59:39 +00:00
|
|
|
#pragma once
|
2017-11-22 21:29:52 +00:00
|
|
|
#ifndef ES_CORE_UTILS_STRING_UTIL_H
|
|
|
|
#define ES_CORE_UTILS_STRING_UTIL_H
|
2017-11-15 15:59:39 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
namespace String
|
|
|
|
{
|
|
|
|
unsigned int chars2Unicode(const std::string& _string, size_t& _cursor);
|
|
|
|
std::string unicode2Chars(const unsigned int _unicode);
|
2017-11-22 21:29:52 +00:00
|
|
|
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);
|
|
|
|
std::string trim (const std::string& _path);
|
2017-11-15 15:59:39 +00:00
|
|
|
|
2017-11-22 21:29:52 +00:00
|
|
|
} // Utils::String::
|
2017-11-15 15:59:39 +00:00
|
|
|
|
|
|
|
} // Utils::
|
|
|
|
|
2017-11-22 21:29:52 +00:00
|
|
|
#endif // ES_CORE_UTILS_STRING_UTIL_H
|