chxavstringutils.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
- /************************************************************************
- * chxavstringutils.h
- * ------------------
- *
- * Synopsis:
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavstringutils_h_
- #define _chxavstringutils_h_
- // Symbian includes...
- #include <aknpopup.h>
- #include <akntitle.h>
- #include <eikenv.h>
- #include <coemain.h>
- // Helix includes...
- #include "hxassert.h"
- #include "hxstring.h"
- #include "hlxosstr.h"
- #include "hxprefs.h"
- namespace CHXAvStringUtils
- {
- void GetTruncatedDisplayTextL(const TDesC& textIn, const CFont* pFont, TInt cxDisplay, HBufC*& pTextOut, bool bUseEllipsis);
- void StringToDes(const CHXString& in, TDes& out);
- void DesToString(const TDesC& in, CHXString& out);
- CHXString DescToString(const TDesC& desc);
- HBufC* StringToHBuf(const CHXString& s);
- void Replace(TPtr& ptr, char oldChar, char newChar);
- HBufC* AllocTextL(const CHXString& str);
- HBufC* AllocTextL(const TDesC& one, const TDesC& two = KNullDesC, const TDesC& three = KNullDesC);
-
- // allocating formatted resource text
- HBufC* AllocResFormatTextL(TInt resId, TInt arg);
- HBufC* AllocResFormatTextL(TInt resId, double arg);
- HBufC* AllocResFormatTextL(TInt resId, const TDesC& desc);
-
- HBufC* AllocResTextL(TInt resId);
- HBufC* AllocFormatTextL(const TDesC& formatString, TInt arg);
- HBufC* AllocFormatTextHexArgL(const TDesC& formatString, TUint hexArg);
- }
- #endif // _chxavstringutils_h_