HM::String _tagXMLEntitys::Ref2Entity( LPCTSTR estr ) { HM::String es; if( estr ) { int len = _tcslen(estr); LPTSTR esbuf = es.GetBufferSetLength( len +1); if( esbuf ) Ref2Entity( estr, esbuf, len ); es.ReleaseBuffer(); } return es; }
CString XENTITYS::Ref2Entity( const char* estr ) { CString es; if( estr ) { int len = strlen(estr); // char* esbuf = es.GetBufferSetLength( len+1 ); char* szTemp = new char[len+1]; if( szTemp ) Ref2Entity( estr, szTemp, len ); es = szTemp; delete [] szTemp; } return es; }