1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
/* Automatically generated file. Do not edit directly. */
/* This file is part of The New Aspell
* Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL
* license version 2.0 or 2.1. You should have received a copy of the
* LGPL license along with this library if you did not you can find it
* at http://www.gnu.org/. */
#include "document_checker.hpp"
#include "error.hpp"
namespace acommon {
class CanHaveError;
class DocumentChecker;
struct Error;
class Filter;
class Speller;
extern "C" void delete_aspell_document_checker(DocumentChecker * ths)
{
delete ths;
}
extern "C" unsigned int aspell_document_checker_error_number(const DocumentChecker * ths)
{
return ths->err_ == 0 ? 0 : 1;
}
extern "C" const char * aspell_document_checker_error_message(const DocumentChecker * ths)
{
return ths->err_ ? ths->err_->mesg : "";
}
extern "C" const Error * aspell_document_checker_error(const DocumentChecker * ths)
{
return ths->err_;
}
extern "C" CanHaveError * new_aspell_document_checker(Speller * speller)
{
PosibErr<DocumentChecker *> ret = new_document_checker(speller);
if (ret.has_err()) {
return new CanHaveError(ret.release_err());
} else {
return ret;
}
}
extern "C" DocumentChecker * to_aspell_document_checker(CanHaveError * obj)
{
return static_cast<DocumentChecker *>(obj);
}
extern "C" void aspell_document_checker_reset(DocumentChecker * ths)
{
ths->reset();
}
extern "C" void aspell_document_checker_process(DocumentChecker * ths, const char * str, int size)
{
ths->process(str, size);
}
extern "C" Token aspell_document_checker_next_misspelling(DocumentChecker * ths)
{
return ths->next_misspelling();
}
extern "C" Filter * aspell_document_checker_filter(DocumentChecker * ths)
{
return ths->filter();
}
}
|