#include <stdio.h>#include <stdlib.h>#include "ut_types.h"#include "ut_assert.h"#include "ut_debugmsg.h"#include "ut_string.h"#include "ut_iconv.h"#include "ie_impexp_Text.h"#include "ie_imp_Text.h"#include "pd_Document.h"#include "ut_growbuf.h"#include "xap_App.h"#include "xap_EncodingManager.h"#include "ap_Dialog_Id.h"#include "xap_DialogFactory.h"#include "xap_Dlg_Encoding.h"#include "ap_Prefs.h"#include "pt_PieceTable.h"#include "pf_Frag_Strux.h"Defines | |
| #define | X_CleanupIfError(error, exp) do { if (((error)=(exp)) != UT_OK) goto Cleanup; } while (0) |
| #define | X_ReturnIfFail(exp, error) do { bool b = (exp); if (!b) return (error); } while (0) |
| #define | X_ReturnNoMemIfError(exp) X_ReturnIfFail(exp,UT_IE_NOMEMORY) |
Variables | |
| static IE_SuffixConfidence | IE_Imp_Text_Sniffer__SuffixConfidence [] |
| static IE_MimeConfidence | IE_Imp_Text_Sniffer__MimeConfidence [] |
| static IE_SuffixConfidence | IE_Imp_EncodedText_Sniffer__SuffixConfidence [] |
| #define X_CleanupIfError | ( | error, | ||
| exp | ||||
| ) | do { if (((error)=(exp)) != UT_OK) goto Cleanup; } while (0) |
Referenced by IE_Imp_Text::_loadFile().
| #define X_ReturnIfFail | ( | exp, | ||
| error | ||||
| ) | do { bool b = (exp); if (!b) return (error); } while (0) |
| #define X_ReturnNoMemIfError | ( | exp | ) | X_ReturnIfFail(exp,UT_IE_NOMEMORY) |
Referenced by IE_Imp_Text::_parseStream(), and IE_Imp_Text::_writeHeader().
{
{ "txt", UT_CONFIDENCE_POOR },
{ "text", UT_CONFIDENCE_POOR },
{ "", UT_CONFIDENCE_ZILCH }
}
{
{ IE_MIME_MATCH_FULL, IE_MIMETYPE_Text, UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_CLASS, "text", UT_CONFIDENCE_SOSO },
{ IE_MIME_MATCH_BOGUS, "", UT_CONFIDENCE_ZILCH }
}
{
{ "txt", UT_CONFIDENCE_PERFECT },
{ "text", UT_CONFIDENCE_PERFECT },
{ "doc", UT_CONFIDENCE_POOR },
{ "", UT_CONFIDENCE_ZILCH }
}
1.7.1