#include <algorithm> transform(str.begin(), str.end(), str.begin(), ::tolower); 效率远远高于boost::to_upper(str)上述代码有bug待解决