|
a/src/internfile/mh_text.cpp |
|
b/src/internfile/mh_text.cpp |
|
... |
|
... |
80 |
return false;
|
80 |
return false;
|
81 |
}
|
81 |
}
|
82 |
LOGDEB(("file_to_string OK\n"));
|
82 |
LOGDEB(("file_to_string OK\n"));
|
83 |
m_offs = m_text.length();
|
83 |
m_offs = m_text.length();
|
84 |
}
|
84 |
}
|
85 |
|
85 |
if (!m_forPreview) {
|
86 |
string md5, xmd5;
|
86 |
string md5, xmd5;
|
87 |
MD5String(m_text, md5);
|
87 |
MD5String(m_text, md5);
|
88 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
88 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
|
|
89 |
}
|
89 |
m_havedoc = true;
|
90 |
m_havedoc = true;
|
90 |
return true;
|
91 |
return true;
|
91 |
}
|
92 |
}
|
92 |
|
93 |
|
93 |
bool MimeHandlerText::set_document_string(const string& otext)
|
94 |
bool MimeHandlerText::set_document_string(const string& otext)
|
94 |
{
|
95 |
{
|
95 |
m_text = otext;
|
96 |
m_text = otext;
|
|
|
97 |
if (!m_forPreview) {
|
96 |
string md5, xmd5;
|
98 |
string md5, xmd5;
|
97 |
MD5String(m_text, md5);
|
99 |
MD5String(m_text, md5);
|
98 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
100 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
|
|
101 |
}
|
99 |
m_havedoc = true;
|
102 |
m_havedoc = true;
|
100 |
return true;
|
103 |
return true;
|
101 |
}
|
104 |
}
|
102 |
|
105 |
|
103 |
bool MimeHandlerText::skip_to_document(const string& ipath)
|
106 |
bool MimeHandlerText::skip_to_document(const string& ipath)
|