use ToLower() instead of calling std::transform explicitly all the time

This commit is contained in:
unK
2008-09-29 00:11:00 +02:00
parent dbe0480db5
commit 0a210a8896
6 changed files with 34 additions and 27 deletions

View File

@@ -18,6 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <algorithm>
#include "misc.h"
using std::stringstream;
@@ -27,6 +28,11 @@ int Abs(int num)
return (num < 0 ? -num : num);
}
void ToLower(string &s)
{
transform(s.begin(), s.end(), s.begin(), tolower);
}
int StrToInt(string str)
{
return atoi(str.c_str());