AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Common.cpp File Reference
#include "Common.h"

Go to the source code of this file.

Functions

LocaleConstant GetLocaleByName (const std::string &name)
 
void CleanStringForMysqlQuery (std::string &str)
 

Variables

char const * localeNames [TOTAL_LOCALES]
 

Function Documentation

◆ CleanStringForMysqlQuery()

void CleanStringForMysqlQuery ( std::string &  str)
45{
46 std::string::size_type n = 0;
47 while ((n = str.find('\\')) != str.npos) { str.erase(n, 1); }
48 while ((n = str.find('"')) != str.npos) { str.erase(n, 1); }
49 while ((n = str.find('\'')) != str.npos) { str.erase(n, 1); }
50}

Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleSendMail(), and Map::LogEncounterFinished().

◆ GetLocaleByName()

Variable Documentation

◆ localeNames