~ubuntu-branches/ubuntu/natty/mozvoikko/natty-proposed

« back to all changes in this revision

Viewing changes to src/mozVoikko.cpp

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2011-12-20 00:19:52 UTC
  • mfrom: (18.1.3 natty-security)
  • Revision ID: package-import@ubuntu.com-20111220001952-kgbjh71gwu6l8023
Tags: 1.10.0-0ubuntu0.11.04.4
* Update for Firefox 9 (LP: #906389)
  - update debian/patches/port_to_latest_firefox.patch for
    mozISpellCheckingEngine changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
namespace
45
45
{
46
 
 
47
 
    const char *encoding = "UTF-8";
48
 
 
49
46
    typedef const char * (*initvoikko_with_path_t)(int*, const char *, int, const char *);
50
47
 
51
48
    typedef const char * (*initvoikko_t)(int *, const char *, int);
221
218
        boolean_option_func_(voikkohandle, VOIKKO_OPT_ACCEPT_MISSING_HYPHENS, 1);
222
219
        #endif
223
220
 
224
 
        int status = string_option_func_(voikkohandle, VOIKKO_OPT_ENCODING, encoding);
225
 
        if (!status) {
226
 
            logMessage("Failed to set encoding %s for libvoikko.", encoding);
227
 
            return false;
228
 
        }
229
 
        
230
221
        logMessage("%s is successfully initialized.", libvoikkoName);
231
222
 
232
223
        libvoikko_initialized = true;
295
286
    status = check(str);
296
287
    return status ? 1 : 0;
297
288
}
298
 
 
299
 
char * MozVoikko::get_dic_encoding()
300
 
{
301
 
    return (char*) encoding;
302
 
}