Lines 30-36
class StarDictBuilder : public DictBuild
Link Here
|
30 |
|
30 |
|
31 |
public: |
31 |
public: |
32 |
StarDictBuilder( std::string filename ); |
32 |
StarDictBuilder( std::string filename ); |
33 |
~StarDictBuilder(); |
33 |
virtual ~StarDictBuilder(); |
34 |
|
34 |
|
35 |
bool addHeadword( std::string word, std::string def, std::vector<std::string> alternates = std::vector<std::string>() ); |
35 |
bool addHeadword( std::string word, std::string def, std::vector<std::string> alternates = std::vector<std::string>() ); |
36 |
bool finish(); |
36 |
bool finish(); |
Lines 73-79
protected:
Link Here
|
73 |
}; |
73 |
}; |
74 |
|
74 |
|
75 |
typedef unsigned int uint32; |
75 |
typedef unsigned int uint32; |
76 |
typedef std::map<std::string, entry> dictionary; |
76 |
typedef std::multimap<std::string, entry> dictionary; |
77 |
|
77 |
|
78 |
std::ofstream file; |
78 |
std::ofstream file; |
79 |
std::string m_ifofilename; |
79 |
std::string m_ifofilename; |