From 813c088c1c66df45731c9015248b22d55e694c76 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Wed, 29 Oct 2014 16:40:55 +1000 Subject: Added names colours and refactored parseColorString() --- src/util/string.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/util/string.h') diff --git a/src/util/string.h b/src/util/string.h index e46fbf4e9..9f7b6673d 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -126,13 +126,8 @@ inline std::vector str_split(const std::string &str, char delimiter inline std::string lowercase(const std::string &s) { std::string s2; - for(size_t i=0; i= 'A' && c <= 'Z') - c -= 'A' - 'a'; - s2 += c; - } + for(size_t i = 0; i < s.size(); i++) + s2[i] = tolower(s.at(i)); return s2; } -- cgit v1.2.3