关于MFC中CString类SpanIncluding方法用来检查字符串是否符合要求的字符

版权声明:版权归属于CSDN用户:爷灬傲奈我何,转载请经过作者同意,谢谢。 https://blog.csdn.net/qq_19070475/article/details/85120263
CString str;
CString m_sTel;
...
str = m_sTel.SpanIncluding(_T("-+0123456789"));
if (str != m_sTel)
{
	//说明字符串m_sTel中有超出SpanIncluding给定范围内的字符
}

猜你喜欢

转载自blog.csdn.net/qq_19070475/article/details/85120263
今日推荐