chxavescapedstring.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
- /************************************************************************
- * chxavescapedstring.h
- * --------------------
- *
- * Synopsis:
- * String manipulation. Remove escape chars.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavescapedstring_h_
- #define _chxavescapedstring_h_
- // Helix includes...
- #include "hxstring.h"
- class CHXAvEscapedString
- {
- public:
- CHXAvEscapedString();
- explicit CHXAvEscapedString(const char* pEscapedStr);
- explicit CHXAvEscapedString(const CHXString& escapedStr);
- bool operator == (const CHXAvEscapedString& rhs) const;
- bool operator != (const CHXAvEscapedString& rhs) const;
- bool ValidPath() const; // Is this a valid escaped path
- bool ValidQuery() const; // Is this a valid escaped query
- void EscapePathStr(const CHXString& unescapedPath, bool bForcePlusEscape = true);
- void EscapeQueryStr(const CHXString& unescapedQuery);
- const CHXString& GetEscapedStr() const;
- const CHXString& GetUnEscapedStr() const;
- private:
-
- CHXString m_escaped;
- CHXString m_unEscaped;
- };
- inline
- const CHXString& CHXAvEscapedString::GetEscapedStr() const
- {
- return m_escaped;
- }
- inline
- const CHXString& CHXAvEscapedString::GetUnEscapedStr() const
- {
- return m_unEscaped;
- }
- #endif // _chxavescapedstring_h_