#include <algorithm> transform(str.begin(), str.end(), str.begin(), ::tolower); 效率远远高于boost::to_upper(str)