mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
monsters
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <vector>
|
||||
#include <cctype>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include "types.h"
|
||||
@@ -213,6 +214,18 @@ inline std::string utf8StringToLatin1(uchar *utf8) {
|
||||
return out;
|
||||
}
|
||||
|
||||
// Convert string to lower case
|
||||
inline std::string toLowerCaseString(std::string& str) {
|
||||
std::transform(str.begin(), str.end(), str.begin(), tolower);
|
||||
return str;
|
||||
}
|
||||
|
||||
// Convert string to upper case
|
||||
inline std::string toUpperCaseString(std::string& str) {
|
||||
std::transform(str.begin(), str.end(), str.begin(), toupper);
|
||||
return str;
|
||||
}
|
||||
|
||||
// utility for printing messages into stdout
|
||||
template<class... T>
|
||||
void print(const T&... args) {
|
||||
|
||||
Reference in New Issue
Block a user