// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com

//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $Workfile:     $
// $Date:         $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================

#include <string.h>
#include "characterset.hpp"

//-----------------------------------------------------------------------------
// Purpose: builds a simple lookup table of a group of important characters
// Input  : *pParseGroup - pointer to the buffer for the group
//			*pGroupString - null terminated list of characters to flag
//-----------------------------------------------------------------------------
void CharacterSetBuild(characterset_t *pSetBuffer, const char *pszSetString)
{
    int i = 0;

    // Test our pointers
    if(!pSetBuffer || !pszSetString)
        return;

    memset(pSetBuffer->Set, 0, sizeof(pSetBuffer->Set));

    while(pszSetString[i]) {
        pSetBuffer->Set[pszSetString[i]] = 1;
        i++;
    }

}







































