/***************************************************************************

    supportware
    Copyright (C) 2001-2008 by c.holzheuer
    c.holzheuer@sourceworx.org

    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.

***************************************************************************/


#ifndef DDWEBSEARCHKEY_H
#define DDWEBSEARCHKEY_H

#include <ddbaseobject.h>
#include <ddstringset.h>

/// ddwebsearchkey: bastelt den suchschlüssel für die volltextsuche
/**
	ddwebsearchkey: bastelt den suchschlüssel für die volltextsuche: aus kartoffel salat
	wird '+kartoffel* +salat*'. Stopworte werden dabei ausgeblendet.
*/

class ddwebsearchkey : public ddbaseobject
{

public:
    
	void			init_stop_words( const ddstring& content, const ddstring& evilchars );
	ddstring	prepare_key( const ddstring& rawkey );
	
protected:
  
  ddstringset _stopwords;
  ddstring		_evilchars;

};

#endif

