CATUnicodeString字符串处理
UserCheckIteamList[j]=“热处理检查”;
目的:去除检查2个字的不同方法
CATUnicodeString subString;
int length = UserCheckIteamList[j].GetLengthInChar();
subString = UserCheckIteamList[j].SubString(0,length-2);
cout<<"subString--"<<subString<<endl;
返回的是“热处理”
CATUnicodeString subString1=UserCheckIteamList[j].Strip();
subString1.ReplaceAll("检查","");
cout<<"ReplaceAll--subString1="<<subString1<<endl;
cout<<"ReplaceAll--UserCheckIteamList="<<UserCheckIteamList[j]<<endl;
返回的是“热处理”和“热处理检查”
cout<<"高亮--"<<UserCheckIteamList[j].Strip().SearchSubString("检查")<<endl;`
返回的是“4”