Switch to unified view

a/src/internfile/mimehandler.h b/src/internfile/mimehandler.h
...
...
22
22
23
#include <string>
23
#include <string>
24
24
25
#include "Filter.h"
25
#include "Filter.h"
26
#include "cstr.h"
26
#include "cstr.h"
27
#include "smallut.h"
27
28
28
class RclConfig;
29
class RclConfig;
29
30
30
class RecollFilter : public Dijon::Filter {
31
class RecollFilter : public Dijon::Filter {
31
public:
32
public:
...
...
91
    return set_document_string(mtype, std::string(cp, sz));
92
    return set_document_string(mtype, std::string(cp, sz));
92
    }
93
    }
93
94
94
    virtual void set_docsize(off_t size)
95
    virtual void set_docsize(off_t size)
95
    {
96
    {
96
  char csize[30];
97
  sprintf(csize, "%lld", (long long)size);
98
    m_metaData[cstr_dj_keydocsize] = csize;
97
    m_metaData[cstr_dj_keydocsize] = ulltodecstr(size);
99
    }
98
    }
100
99
101
    virtual bool has_documents() const {return m_havedoc;}
100
    virtual bool has_documents() const {return m_havedoc;}
102
101
103
    // Most doc types are single-doc
102
    // Most doc types are single-doc