43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
--- hunspell-1.2.2.orig/src/hunspell/hunspell.hxx 2008-04-02 13:12:03.000000000 +0100
|
|
+++ hunspell-1.2.2/src/hunspell/hunspell.hxx 2008-05-16 14:49:12.000000000 +0100
|
|
@@ -51,7 +51,8 @@
|
|
* input: path of affix file and dictionary file
|
|
*/
|
|
|
|
- Hunspell(const char * affpath, const char * dpath, const char * key = NULL);
|
|
+ Hunspell(const char * affpath, const char * dpath);
|
|
+ Hunspell(const char * affpath, const char * dpath, const char * key);
|
|
~Hunspell();
|
|
|
|
/* load extra dictionaries (only dic files) */
|
|
@@ -181,7 +181,7 @@
|
|
const char * get_xml_pos(const char * s, const char * attr);
|
|
int get_xml_list(char ***slst, char * list, char * tag);
|
|
int check_xml_par(char * q, char * attr, char * value);
|
|
-
|
|
+ void init(const char * affpath, const char * dpath, const char * key);
|
|
};
|
|
|
|
#endif
|
|
--- hunspell-1.2.2.orig/src/hunspell/hunspell.cxx 2008-04-02 13:12:30.000000000 +0100
|
|
+++ hunspell-1.2.2/src/hunspell/hunspell.cxx 2008-05-16 14:49:50.000000000 +0100
|
|
@@ -22,8 +22,18 @@
|
|
#endif
|
|
#endif
|
|
|
|
+Hunspell::Hunspell(const char * affpath, const char * dpath)
|
|
+{
|
|
+ init(affpath, dpath, NULL);
|
|
+}
|
|
+
|
|
Hunspell::Hunspell(const char * affpath, const char * dpath, const char * key)
|
|
{
|
|
+ init(affpath, dpath, key);
|
|
+}
|
|
+
|
|
+void Hunspell::init(const char * affpath, const char * dpath, const char * key)
|
|
+{
|
|
encoding = NULL;
|
|
csconv = NULL;
|
|
utf8 = 0;
|