/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
/*
* This file is part of The Croco Library
*
* modify it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* Author: Dodji Seketeli
* see COPYRIGHTS file for copyright information.
*/
/**
*@file
*The definition of the #CRToken class.
*Abstracts a css2 token.
*/
#include <string.h>
#include "cr-token.h"
/*
*TODO: write a CRToken::to_string() method.
*/
/**
*Frees the attributes of the current instance
*of #CRtoken.
*@param a_this the current instance of #CRToken.
*/
static void
{
case S_TK:
case CDO_TK:
case CDC_TK:
case INCLUDES_TK:
case DASHMATCH_TK:
case PAGE_SYM_TK:
case MEDIA_SYM_TK:
case FONT_FACE_SYM_TK:
case CHARSET_SYM_TK:
case IMPORT_SYM_TK:
case IMPORTANT_SYM_TK:
case SEMICOLON_TK:
case NO_TK:
case DELIM_TK:
case CBO_TK:
case CBC_TK:
case BO_TK:
case BC_TK:
break;
case STRING_TK:
case IDENT_TK:
case HASH_TK:
case URI_TK:
case FUNCTION_TK:
case COMMENT_TK:
case ATKEYWORD_TK:
}
break;
case EMS_TK:
case EXS_TK:
case LENGTH_TK:
case ANGLE_TK:
case TIME_TK:
case FREQ_TK:
case PERCENTAGE_TK:
case NUMBER_TK:
case PO_TK:
case PC_TK:
}
break;
case DIMEN_TK:
}
}
break;
case RGB_TK:
}
break ;
case UNICODERANGE_TK:
/*not supported yet. */
break;
default:
cr_utils_trace_info ("I don't know how to clear this token\n") ;
break;
}
}
/**
*Default constructor of
*the #CRToken class.
*@return the newly built instance of #CRToken.
*/
CRToken *
cr_token_new (void)
{
cr_utils_trace_info ("Out of memory");
return NULL;
}
return result;
}
/**
*Sets the type of curren instance of
*#CRToken to 'S_TK' (S in the css2 spec)
*@param a_this the current instance of #CRToken.
*@return CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
*Sets the type of the current instance of
*#CRToken to 'CDO_TK' (CDO as said by the css2 spec)
*@param a_this the current instance of #CRToken.
*@return CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
*Sets the type of the current token to
*CDC_TK (CDC as said by the css2 spec).
*@param a_this the current instance of #CRToken.
*@return CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
*Sets the type of the current instance of
*#CRToken to INCLUDES_TK (INCLUDES as said by the css2 spec).
*@param a_this the current instance of #CRToken.
*@return CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
*Sets the type of the current instance of
*#CRToken to DASHMATCH_TK (DASHMATCH as said by the css2 spec).
*@param a_this the current instance of #CRToken.
*@return CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
enum CRTokenExtraType a_et)
{
return CR_OK;
}
enum CRStatus
enum CRTokenExtraType a_et)
{
return CR_OK;
}
enum CRStatus
enum CRTokenExtraType a_et)
{
return CR_OK;
}
enum CRStatus
enum CRTokenExtraType a_et)
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
enum CRStatus
{
return CR_OK;
}
/**
*The destructor of the #CRToken class.
*@param a_this the current instance of #CRToken.
*/
void
{
}