/usr/include/CLucene/queryParser/legacy/QueryToken.h is in libclucene-dev 2.3.3.4-4.
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 | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------------------------------------------------------*/
#ifndef _lucene_queryParser_legacy_QueryToken_
#define _lucene_queryParser_legacy_QueryToken_
CL_NS_DEF2(queryParser,legacy)
// Token class that used by QueryParser.
class CLUCENE_EXPORT QueryToken:LUCENE_BASE
{
public:
enum Types
{
AND_,
OR,
NOT,
PLUS,
MINUS,
LPAREN,
RPAREN,
COLON,
CARAT,
QUOTED,
TERM,
SLOP,
FUZZY,
PREFIXTERM,
WILDTERM,
RANGEIN,
RANGEEX,
NUMBER,
EOF_,
UNKNOWN_
};
#ifdef LUCENE_TOKEN_WORD_LENGTH
TCHAR Value[LUCENE_TOKEN_WORD_LENGTH+1];
#else
TCHAR* Value;
#endif
int32_t Start;
int32_t End;
QueryToken::Types Type;
// Initializes a new instance of the Token class.
QueryToken(const TCHAR* value, const int32_t start, const int32_t end, const Types type);
// Initializes a new instance of the Token class.
QueryToken(const TCHAR* value, const Types type);
// Initializes a new instance of the Token class.
QueryToken(Types type);
// Initializes an empty instance of the Token class.
QueryToken();
~QueryToken();
void set(const TCHAR* value, const int32_t start, const int32_t end, const Types type);
void set(const TCHAR* value, const Types type);
void set(Types type);
};
CL_NS_END2
#endif
|