1
/*------------------------------------------------------------------------------
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
4
* Distributable under the terms of either the Apache License (Version 2.0) or
5
* the GNU Lesser General Public License, as specified in the COPYING file.
6
------------------------------------------------------------------------------*/
7
#include "CLucene/_ApiHeader.h"
8
#include "QueryToken.h"
10
CL_NS_DEF(queryParser)
13
QueryToken::QueryToken() :
25
QueryToken::~QueryToken()
27
#ifndef LUCENE_TOKEN_WORD_LENGTH
28
_CLDELETE_LCARRAY( image );
32
TCHAR* QueryToken::toString() const
34
#ifndef LUCENE_TOKEN_WORD_LENGTH
37
return STRDUP_TtoT(image);
42
QueryToken* QueryToken::newToken(const int32_t /*ofKind*/)
46
//default : return _CLNEW Token();
48
return _CLNEW QueryToken();