tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mozHunspellRLBoxGlue.h (1759B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozHunspellRLBoxGlue_h
      8 #define mozHunspellRLBoxGlue_h
      9 
     10 #include <stdint.h>
     11 
     12 #if defined(__cplusplus)
     13 extern "C" {
     14 #endif
     15 
     16 typedef uint32_t(hunspell_create_filemgr_t)(const char* aFilename);
     17 typedef bool(hunspell_get_line_t)(uint32_t aFd, char** aLinePtr);
     18 typedef int(hunspell_get_line_num_t)(uint32_t aFd);
     19 typedef void(hunspell_destruct_filemgr_t)(uint32_t aFd);
     20 typedef uint32_t(hunspell_ToUpperCase_t)(uint32_t aChar);
     21 typedef uint32_t(hunspell_ToLowerCase_t)(uint32_t aChar);
     22 typedef struct cs_info*(hunspell_get_current_cs_t)(const char* es);
     23 
     24 void RegisterHunspellCallbacks(
     25    hunspell_create_filemgr_t* aHunspellCreateFilemgr,
     26    hunspell_get_line_t* aHunspellGetLine,
     27    hunspell_get_line_num_t* aHunspellGetLine_num,
     28    hunspell_destruct_filemgr_t* aHunspellDestructFilemgr,
     29    hunspell_ToUpperCase_t* aHunspellToUpperCase,
     30    hunspell_ToLowerCase_t* aHunspellToLowerCase,
     31    hunspell_get_current_cs_t* aHunspellGetCurrentCS);
     32 
     33 extern hunspell_create_filemgr_t* moz_glue_hunspell_create_filemgr;
     34 extern hunspell_get_line_t* moz_glue_hunspell_get_line;
     35 extern hunspell_get_line_num_t* moz_glue_hunspell_get_line_num;
     36 extern hunspell_destruct_filemgr_t* moz_glue_hunspell_destruct_filemgr;
     37 extern hunspell_ToUpperCase_t* moz_hunspell_ToUpperCase;
     38 extern hunspell_ToLowerCase_t* moz_hunspell_ToLowerCase;
     39 extern hunspell_get_current_cs_t* moz_hunspell_GetCurrentCS;
     40 
     41 #if defined(__cplusplus)
     42 }
     43 #endif
     44 
     45 #endif