标签:sub bool entry pre boost put ring git str
过滤Entry的输入
string input = text;
int len = input.length();
string pre_str = ety_avg_speed->get_text();
pre_str = pre_str.substr(0, pre_str.length() - len);
bool rt = boost::all(input, boost::is_digit());
if (!rt) {
ety_avg_speed->set_text(pre_str);
}
标签:sub bool entry pre boost put ring git str
原文地址:http://www.cnblogs.com/kangtuohongwai/p/6002561.html