mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 04:49:45 +01:00
lalala
This commit is contained in:
@@ -120,7 +120,6 @@ R unsafe_cast(const T& t, R def) {
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -214,10 +214,20 @@ inline std::string utf8StringToLatin1(uchar *utf8) {
|
||||
}
|
||||
|
||||
// Convert string to lower case
|
||||
inline std::string tolower(std::string& str) { return boost::algorithm::to_lower_copy(str); }
|
||||
inline std::string tolower(const std::string& str)
|
||||
{
|
||||
std::string _str = str;
|
||||
boost::algorithm::to_lower(_str);
|
||||
return _str;
|
||||
}
|
||||
|
||||
// Convert string to upper case
|
||||
inline std::string toupper(std::string& str) { return boost::algorithm::to_upper_copy(str); }
|
||||
inline std::string toupper(const std::string& str)
|
||||
{
|
||||
std::string _str = str;
|
||||
boost::algorithm::to_upper(_str);
|
||||
return _str;
|
||||
}
|
||||
|
||||
// utility for printing messages into stdout
|
||||
template<class... T>
|
||||
|
||||
Reference in New Issue
Block a user