|
|
|
@ -42,7 +42,7 @@ namespace Dict
|
|
|
|
|
enum TextType { Text_Kanji, Text_Kana, Text_Latin };
|
|
|
|
|
|
|
|
|
|
// returns the TextType of the first part of the text
|
|
|
|
|
KDE_EXPORT TextType textType(const TQString &text);
|
|
|
|
|
TDE_EXPORT TextType textType(const TQString &text);
|
|
|
|
|
|
|
|
|
|
// File needs to be able to give out Arrays based on its mmap'd data.
|
|
|
|
|
// But, we don't want the users of the arrays to have to remember to
|
|
|
|
@ -106,7 +106,7 @@ private:
|
|
|
|
|
bool valid;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class KDE_EXPORT Entry
|
|
|
|
|
class TDE_EXPORT Entry
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
// EDict ctor
|
|
|
|
@ -161,7 +161,7 @@ struct SearchResult
|
|
|
|
|
enum SearchType { Search_Beginning, Search_FullWord, Search_Anywhere };
|
|
|
|
|
enum DictionaryType { Edict, Kanjidict };
|
|
|
|
|
|
|
|
|
|
class KDE_EXPORT Index : public TQObject
|
|
|
|
|
class TDE_EXPORT Index : public TQObject
|
|
|
|
|
{
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
@ -193,12 +193,12 @@ private:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// lotsa helper functions
|
|
|
|
|
KDE_EXPORT TQString prettyKanjiReading(TQStringList);
|
|
|
|
|
KDE_EXPORT TQString prettyMeaning(TQStringList);
|
|
|
|
|
KDE_EXPORT Entry parse(const TQString &);
|
|
|
|
|
KDE_EXPORT Entry kanjiParse(const TQString &);
|
|
|
|
|
KDE_EXPORT Dict::Entry firstEntry(Dict::SearchResult);
|
|
|
|
|
KDE_EXPORT TQString firstEntryText(Dict::SearchResult);
|
|
|
|
|
TDE_EXPORT TQString prettyKanjiReading(TQStringList);
|
|
|
|
|
TDE_EXPORT TQString prettyMeaning(TQStringList);
|
|
|
|
|
TDE_EXPORT Entry parse(const TQString &);
|
|
|
|
|
TDE_EXPORT Entry kanjiParse(const TQString &);
|
|
|
|
|
TDE_EXPORT Dict::Entry firstEntry(Dict::SearchResult);
|
|
|
|
|
TDE_EXPORT TQString firstEntryText(Dict::SearchResult);
|
|
|
|
|
|
|
|
|
|
int eucStringCompare(const char *str1, const char *str2);
|
|
|
|
|
bool isEUC(unsigned char c);
|
|
|
|
|