标签:span trim code bsp first nbsp return ast last
string & trim(string &s){ if(s.empty()){ return s; } s.erase(0,s.find_first_not_of(" ")); s.erase(s.find_last_not_of(" ")+1); return s; }
标签:span trim code bsp first nbsp return ast last
原文地址:https://www.cnblogs.com/yuguangyuan/p/9385376.html