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/. */
7 #ifndef mozHunspellRLBoxSandbox_h
8 #define mozHunspellRLBoxSandbox_h
13 // Note: This class name and lack of namespacing terrible, but are necessary
14 // for Hunspell compatibility.
18 * aFilename must be a local file/jar URI for the file to load.
20 * aKey is the decription key for encrypted Hunzip files, and is
21 * unsupported. The argument is there solely for compatibility.
23 explicit FileMgr(const char* aFilename
, const char* aKey
= nullptr);
26 // Note: The nonstandard naming conventions of these methods are necessary for
27 // Hunspell compatibility.
28 bool getline(std::string
& aLine
);
29 int getlinenum() const;
32 // opaque file descriptor got from the host application
36 #endif // mozHunspellRLBoxSandbox_h