| 40 | } |
| 41 | |
| 42 | void rfc2047::reset(bool strip_sp /* = true */) |
| 43 | { |
| 44 | std::list<rfc2047_entry*>::iterator it, lt; |
| 45 | |
| 46 | it = lt = m_List.begin(); |
| 47 | for (; it != m_List.end(); it = lt) { |
| 48 | lt++; |
| 49 | delete (*it)->pData; |
| 50 | delete (*it)->pCharset; |
| 51 | delete (*it); |
| 52 | m_List.pop_front(); |
| 53 | } |
| 54 | m_pCurrentEntry = NULL; |
| 55 | m_status = rfc2047_status_next; |
| 56 | m_lastCh = 0; |
| 57 | m_stripSp = strip_sp; |
| 58 | delete m_coder; |
| 59 | m_coder = NULL; |
| 60 | } |
| 61 | |
| 62 | const std::list<rfc2047_entry*>& rfc2047::get_list() const |
| 63 | { |
no test coverage detected