????????csStr="abcdef????123456";
????csStr2="ABCDEF????123456";
????cout<<csStr.CompareNoCase(csStr2); //-1
????int Delete( int nIndex?? int nCount = 1 )
??????????????????±?nIndex?????nCount?????
????????csStr="ABCDEF";
????csStr.Delete(2??3);
????cout<<csStr; // ABF
????//??nIndex??????????????????????????????????κβ?????
????//??nIndex?????????????????????????
????//??nCount???????????????????????????????????????????????????
????//??nCount????????????????κβ?????
????int Insert( int nIndex?? TCHAR ch )
????int Insert( int nIndex?? LPCTSTR pstr )
???????±??nIndex??λ??????????????????????????????????
????????csStr="abc";
????csStr.Insert(2??'x');
????cout<<csStr; //abxc
????csStr="abc";
????csStr.Insert(2??"xyz");
????cout<<csStr; //abxyzc
????//??nIndex??????????????????
????//??nIndex?????????β?????????????β
????int Remove( TCHAR ch );
??????????????????????????????????
????????csStr="aabbaacc";
????csStr.Remove('a');
????cout<<csStr; //bbcc
????int Replace( TCHAR chOld?? TCHAR chNew );
????int Replace( LPCTSTR lpszOld?? LPCTSTR lpszNew );
?????滻???
????????csStr="abcdef";
????csStr.Replace('a'??'x');
????cout<<csStr; //xbcdef
????csStr="abcdef";
????csStr.Replace("abc"??"xyz");
????cout<<csStr; //xyzdef
????void TrimLeft( );
????void TrimLeft( TCHAR chTarget );
????void TrimLeft( LPCTSTR lpszTargets );
??????????????????????????chTarget??lpszTargets????????????????????????
????????csStr="aaabaacdef";
????csStr.TrimLeft('a');
????cout<<csStr; //baacdef
????csStr="aaabaacdef";
????csStr.TrimLeft("ab");
????cout<<csStr; //cdef
????//????????????
????void TrimRight( );
????void TrimRight( TCHAR chTarget );
????void TrimRight( LPCTSTR lpszTargets );
??????????????????????????chTarget??lpszTargets????????????????????????
????????csStr="abcdeaafaaa";
????csStr.TrimRight('a');
????cout<<csStr; //abcdeaaf
????csStr="abcdeaafaaa";
????csStr.TrimRight("fa");
????cout<<csStr; //abcde
????//????????????
????void Empty( );
???????
????????csStr="abcdef";
????csStr.Empty();
????printf("%d"??csStr.GetLength()); //0
????BOOL IsEmpty( ) const;
?????????????????????????????????????????
????????csStr="abc";
????cout<<csStr.IsEmpty(); //0;
????csStr.Empty();
????cout<<csStr.IsEmpty(); //1;
????int Find( TCHAR ch ) const;
????int Find( LPCTSTR lpszSub ) const;
????int Find( TCHAR ch?? int nStart ) const;
????int Find( LPCTSTR pstr?? int nStart ) const;
?????????????nStart?????????λ?á?δ???????????-1???????????????λ??
????????csStr="abcdef";
????cout<<csStr.Find('b'); //1
????cout<<csStr.Find("de"); //3
????cout<<csStr.Find('b'??3); //-1
????cout<<csStr.Find('b'??0); //1
????cout<<csStr.Find("de"??4); //-1
????cout<<csStr.Find("de"??0); //3
????//??nStart?????????β???????-1??
????//??nStart????????????-1??
????int FindOneOf( LPCTSTR lpszCharSet ) const;
????????lpszCharSet??????????????CString?????е????λ?á?δ????????-1???????????????λ??
????????csStr="abcdef";
????cout<<csStr.FindOneOf("cxy"); //2
????CString SpanExcluding( LPCTSTR lpszCharSet ) const;
???????????????lpszCharSet????????????????????????
????????csStr="abcdef";
????cout<<csStr.SpanExcluding("cf"); //ab
????CString SpanIncluding( LPCTSTR lpszCharSet ) const;
??????????в?????lpszCharSe?????????????????????????????????????????????
????????csStr="abcdef";
????cout<<csStr.SpanIncluding("fdcba"); //abcd
????int ReverseFind( TCHAR ch ) const;
??????????????????????????????±??????????-1
????????csStr="abba";
????cout<<csStr.ReverseFind('a'); //3
????void Format( LPCTSTR lpszFormat?? ... );
????void Format( UINT nFormatID?? ... );
???????????????C?????sprintf?????÷????
????????csStr.Format("%d"??13);
????cout<<csStr; //13
????TCHAR GetAt( int nIndex ) const;
?????????±??nIndex????????????????[]?÷????
????????csStr="abcdef";
????cout<<csStr.GetAt(2); //c
????//??nIndex??????????????β??????????????????
????void SetAt( int nIndex?? TCHAR ch );
???????±??nIndex???????????
????????csStr="abcdef";
????csStr.SetAt(2??'x');
????cout<<csStr; //abxdef
????//??nIndex??????????????β??????????????????
????CString Left( int nCount ) const;
????????????
????????csStr="abcdef";
????cout<<csStr.Left(3); //abc
????//??nCount????0?????????
????//??nCount??????????????
????//??nCount???????????????????????????
????CString Right( int nCount ) const;
????????????
????????csStr="abcdef";
????cout<<csStr.Right(3); //def
????//??nCount????0?????????
????//??nCount??????????????
????//??nCount???????????????????????????
????CString Mid( int nFirst ) const;
????CString Mid( int nFirst?? int nCount ) const;
???????м儷?????
????????csStr="abcdef";
????cout<<csStr.Mid(2); //cdef
????csStr="abcdef";
????cout<<csStr.Mid(2??3); //cde
????//??nFirst?0?????????????????????????
????//??nFirst????????β?????????????
????//??nFirst?????????β??????????????????
????//??nCount?????????β????????nFirst????????????β?????
????//??nCount?0????????????????????
????LPTSTR GetBuffer( int nMinBufLength );
?????????μ????????????
????????csStr="abcde";
????LPTSTR pStr=csStr.GetBuffer(10);
????strcpy(pStr??"12345");
????csStr.ReleaseBuffer();
????pStr=NULL;
????cout<<csStr //12345
????//?????GetBuffer?????????ReleaseBuffer??????????????????????????????????
????void ReleaseBuffer( int nNewLength = -1 );