#include <ncbistr.hpp>
Collaboration diagram for CEncodedString:

Class to detect if a string needs to be URL-encoded and hold both encoded and original versions.
Definition at line 3010 of file ncbistr.hpp.
Public Member Functions | |
| CEncodedString (void) | |
| CEncodedString (const string &s, NStr::EUrlEncode flag=NStr::eUrlEnc_SkipMarkChars) | |
| void | SetString (const string &s, NStr::EUrlEncode flag=NStr::eUrlEnc_SkipMarkChars) |
| Set new original string. | |
| bool | IsEncoded (void) const |
| Check if the original string was encoded. | |
| const string & | GetOriginalString (void) const |
| Get the original unencoded string. | |
| const string & | GetEncodedString (void) const |
| Get encoded string. | |
| bool | IsEmpty (void) const |
| Check if the string is empty. | |
Private Attributes | |
| string | m_Original |
| auto_ptr< string > | m_Encoded |
|
|
Definition at line 3013 of file ncbistr.hpp. |
|
||||||||||||
|
Definition at line 3629 of file ncbistr.cpp. References SetString(). |
|
|
Get encoded string.
Definition at line 3026 of file ncbistr.hpp. References IsEncoded(), m_Encoded, and m_Original. Referenced by CRequestContext::GetEncodedSessionID(). |
|
|
Get the original unencoded string.
Definition at line 3024 of file ncbistr.hpp. References m_Original. Referenced by CRequestContext::GetSessionID(), and CRequestContext::SetSessionID(). |
|
|
Check if the string is empty.
Definition at line 3030 of file ncbistr.hpp. References m_Original. |
|
|
Check if the original string was encoded.
Definition at line 3022 of file ncbistr.hpp. References auto_ptr< X >::get(), and m_Encoded. Referenced by GetEncodedString(). |
|
||||||||||||
|
Set new original string.
Definition at line 3636 of file ncbistr.cpp. References auto_ptr< X >::get(), m_Encoded, m_Original, NStr::NeedsURLEncoding(), auto_ptr< X >::reset(), and NStr::URLEncode(). Referenced by CEncodedString(), CRequestContext::SetSessionID(), and CRequestContext::UnsetSessionID(). |
|
|
Definition at line 3034 of file ncbistr.hpp. Referenced by GetEncodedString(), IsEncoded(), and SetString(). |
|
|
Definition at line 3033 of file ncbistr.hpp. Referenced by GetEncodedString(), GetOriginalString(), IsEmpty(), and SetString(). |
1.4.6
Modified on Mon Dec 07 16:23:01 2009 by modify_doxy.py rev. 173732