![]() |
SmtpdSocket::EmailAddress Class Reference#include <SmtpdSocket.h>
Detailed Description
Definition at line 47 of file SmtpdSocket.h. Constructor & Destructor Documentation
Definition at line 49 of file SmtpdSocket.h. 00050 { 00051 std::string str = str_in; 00052 size_t i = str.find("<"); 00053 if (i != std::string::npos) 00054 str = str.substr(i + 1); 00055 i = str.find("@"); 00056 if (i != std::string::npos) 00057 { 00058 m_name = str.substr(0, i); 00059 str = str.substr(i + 1); 00060 i = str.find(">"); 00061 if (i != std::string::npos) 00062 str = str.substr(0, i); 00063 m_domain = str; 00064 } 00065 while (m_name.size() && m_name[m_name.size() - 1] == ' ') 00066 m_name.resize(m_name.size() - 1); 00067 while (m_domain.size() && m_domain[m_domain.size() - 1] == ' ') 00068 m_domain.resize(m_domain.size() - 1); 00069 while (m_name.size() && m_name[0] == ' ') 00070 m_name = m_name.substr(1); 00071 while (m_domain.size() && m_domain[0] == ' ') 00072 m_domain = m_domain.substr(1); 00073 }
Member Function Documentation
Member Data Documentation
Definition at line 81 of file SmtpdSocket.h.
Definition at line 82 of file SmtpdSocket.h.
The documentation for this class was generated from the following file: |