mirror of
https://github.com/Patoke/LCERenewed.git
synced 2026-10-17 17:14:48 +00:00
feat: init
This commit is contained in:
commit
25809b8455
18807 files changed
+3944357
No files matched your search
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
using namespace std;
|
||||
|
||||
wstring toLower(const wstring& a);
|
||||
wstring trimString(const wstring& a);
|
||||
wstring replaceAll(const wstring& in, const wstring& replace, const wstring& with);
|
||||
|
||||
bool equalsIgnoreCase(const wstring& a, const wstring& b);
|
||||
// 4J-PB - for use in the ::toString
|
||||
template <class T> std::wstring _toString(T t)
|
||||
{
|
||||
std::wostringstream oss;
|
||||
oss << std::dec << t;
|
||||
return oss.str();
|
||||
}
|
||||
template <class T> std::wstring _toHexString(T t)
|
||||
{
|
||||
std::wostringstream oss;
|
||||
oss << std::hex << t;
|
||||
return oss.str();
|
||||
}
|
||||
template <class T> T _fromString(const std::wstring& s)
|
||||
{
|
||||
std::wistringstream stream (s);
|
||||
T t;
|
||||
stream >> t;
|
||||
return t;
|
||||
}
|
||||
template <class T> T _fromHEXString(const std::wstring& s)
|
||||
{
|
||||
std::wistringstream stream (s);
|
||||
T t;
|
||||
stream >> std::hex >> t;
|
||||
return t;
|
||||
}
|
||||
|
||||
wstring convStringToWstring(const string& converting);
|
||||
const char *wstringtofilename(const wstring& name);
|
||||
const char *wstringtochararray(const wstring& name);
|
||||
wstring filenametowstring(const char *name);
|
||||
|
||||
std::vector<std::wstring> &stringSplit(const std::wstring &s, wchar_t delim, std::vector<std::wstring> &elems);
|
||||
std::vector<std::wstring> stringSplit(const std::wstring &s, wchar_t delim);
|
||||
|
||||
void stripWhitespaceForHtml(wstring &string, bool bRemoveNewline=true);
|
||||
wstring escapeXML(const wstring &in);
|
||||
wstring parseXMLSpecials(const wstring &in);
|
||||
Reference in new issue
Block a user