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);
|
Add getDirContent, getHomePath, getCWDPath, canonicalPath, absolutePath, resolvePath, resolveSymlink, getExtension, removeFile, isAbsolute, isRegularFile, isDirectory, isSymlink, isHidden and isEquivalent
Rename makeGeneric to genericPath and escapePath to escapedPath
Add toUpper
2017-12-04 23:32:04 +00:00
|
|
|
std::string toUpper (const std::string& _string);
|
|
|
|
std::string trim (const std::string& _string);
|
2017-11-29 19:57:43 +00:00
|
|
|
bool startsWith (const std::string& _string, const std::string& _test);
|
|
|
|
bool endsWith (const std::string& _string, const std::string& _test);
|
2017-11-15 15:59:39 +00:00
|
|
|
|
Add getDirContent, getHomePath, getCWDPath, canonicalPath, absolutePath, resolvePath, resolveSymlink, getExtension, removeFile, isAbsolute, isRegularFile, isDirectory, isSymlink, isHidden and isEquivalent
Rename makeGeneric to genericPath and escapePath to escapedPath
Add toUpper
2017-12-04 23:32:04 +00:00
|
|
|
} // 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
|