/usr/include/Aiksaurus/Aiksaurus.h is in libaiksaurus-1.2-dev 1.2.1+dev-0.12-6.1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | /*
* Aiksaurus - An English-language thesaurus library
* Copyright (C) 2001-2002 by Jared Davis
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
*/
#ifndef INCLUDED_AIKSAURUS_H
#define INCLUDED_AIKSAURUS_H
#if defined WIN32
#if defined _STATIC_BUILD
#define AIKEXPORT
#else
#if defined _DLL
#define AIKEXPORT __declspec(dllexport)
#else
#define AIKEXPORT __declspec(dllimport)
#endif
#endif
#else
#define AIKEXPORT
#endif
#include <string>
namespace AiksaurusImpl
{
class ThesaurusImpl;
class AIKEXPORT Aiksaurus
{
private:
// Prevent copying and assignment
Aiksaurus(const Aiksaurus& rhs);
Aiksaurus& operator=(const Aiksaurus& rhs);
ThesaurusImpl *d_impl_ptr;
std::string d_error;
public:
Aiksaurus() throw();
Aiksaurus(const char * path_meanings, const char * path_words) throw();
~Aiksaurus() throw();
// word(): returns current word that is being
// searched for. You should not try to delete
// this string.
const char* word() const throw();
// error(): empty string if no problems encountered.
// otherwise, a human-suitable description of the
// problem will be presented.
// + Do not try to delete this string.
const char* error() const throw();
// find(): perform a search for a new word.
// returns *true* if word is known, *false* otherwise.
bool find(const char* word) throw();
// next(): return synonyms for the word.
// + Do not try to delete this string.
// + *meaning* will change as new meanings are
// encountered
// + the first two words of any meaning are
// titles for that meaning.
// + returns an empty string when out of synonyms.
const char* next(int& meaning) throw();
// similar(): repeatdly to return one "nearby word"
// at a time. these are not synonyms: they are known
// words that are alphabetically near the
// searched-for word.
const char* similar() throw();
};
}
typedef AiksaurusImpl::Aiksaurus Aiksaurus;
#endif // INCLUDED_AIKSAURUS_H
|