/*====================================================================*
 *
 *   bool isclass (SCAN * content, const char *charset);
 *
 *   scan.h
 *
 *   return true if the current class character is a member of the given
 *   character set; comparison is case sensitive;
 *
 *.  Motley Tools by Charles Maier <cmaier@cmassoc.net>;
 *:  Published 2001-2006 by Charles Maier Associates Limited;
 *;  Released under the GNU General Public Licence v2 and later;
 *
 *--------------------------------------------------------------------*/

#ifndef ISCLASS_SOURCE
#define ISCLASS_SOURCE

#include <string.h>

#include "../scan/scan.h"

bool isclass (SCAN * content, const char *charset) 

{
	if (content->class) 
	{
		return ((bool)(strchr (charset, content->class)));
	}
	return (false);
}

#endif