for
(
set
<
string
>
::iterator it
=
institutionnames.begin();it
!=
institutionnames.end();it
++
)
{
wstring wtemp = strp.String2Wstring( * it);
boost::wregex wreg(L " [\u4e00-\u9fa5] " );
boost::wsmatch m;
wstring::const_iterator mybegin = wtemp.begin();
wstring::const_iterator myend = wtemp.end();
if (wtemp.size() > 3 )
{
if (boost::regex_search(mybegin,myend,m,wreg))
{
standardwps.push_back( * it);
}
}
}
{
wstring wtemp = strp.String2Wstring( * it);
boost::wregex wreg(L " [\u4e00-\u9fa5] " );
boost::wsmatch m;
wstring::const_iterator mybegin = wtemp.begin();
wstring::const_iterator myend = wtemp.end();
if (wtemp.size() > 3 )
{
if (boost::regex_search(mybegin,myend,m,wreg))
{
standardwps.push_back( * it);
}
}
}