/* -*- 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 copyrights information.
*/
/**
*@CRNum:
*
*The definition
*of the #CRNum class.
*/
#include "cr-num.h"
#include "string.h"
/**
* cr_num_new:
*
*#CRNum.
*
*Returns the newly built instance of
*#CRNum.
*/
CRNum *
cr_num_new (void)
{
cr_utils_trace_info ("Out of memory");
return NULL;
}
return result;
}
/**
* cr_num_new_with_val:
* @a_val: the numerical value of the number.
* @a_type: the type of number.
*
* A constructor of #CRNum.
*
* Returns the newly built instance of #CRNum or
* NULL if an error arises.
*/
CRNum *
{
result = cr_num_new ();
return result;
}
/**
* cr_num_to_string:
*@a_this: the current instance of #CRNum.
*
*Returns the newly built string representation
*of the current instance of #CRNum. The returned
*string is NULL terminated. The caller *must*
*free the returned string.
*/
guchar *
{
if (!test_val) {
} else {
/* We can't use g_ascii_dtostr, because that sometimes uses
e notation (which wouldn't be a valid number in CSS). */
}
case NUM_LENGTH_EM:
break;
case NUM_LENGTH_EX:
break;
case NUM_LENGTH_PX:
break;
case NUM_LENGTH_IN:
break;
case NUM_LENGTH_CM:
break;
case NUM_LENGTH_MM:
break;
case NUM_LENGTH_PT:
break;
case NUM_LENGTH_PC:
break;
case NUM_ANGLE_DEG:
break;
case NUM_ANGLE_RAD:
break;
case NUM_ANGLE_GRAD:
break;
case NUM_TIME_MS:
break;
case NUM_TIME_S:
break;
case NUM_FREQ_HZ:
break;
case NUM_FREQ_KHZ:
break;
case NUM_PERCENTAGE:
break;
case NUM_INHERIT:
break ;
case NUM_AUTO:
break ;
case NUM_GENERIC:
break ;
default:
break;
}
if (tmp_char2) {
} else {
}
return result;
}
/**
* cr_num_copy:
*@a_src: the instance of #CRNum to copy.
*Must be non NULL.
*@a_dest: the destination of the copy.
*Must be non NULL
*
*Copies an instance of #CRNum.
*
*Returns CR_OK upon successful completion, an
*error code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
* cr_num_dup:
*@a_this: the instance of #CRNum to duplicate.
*
*Duplicates an instance of #CRNum
*
*Returns the newly created (duplicated) instance of #CRNum.
*Must be freed by cr_num_destroy().
*/
CRNum *
{
result = cr_num_new ();
return result;
}
/**
* cr_num_set:
*Sets an instance of #CRNum.
*@a_this: the current instance of #CRNum to be set.
*@a_val: the new numerical value to be hold by the current
*instance of #CRNum
*@a_type: the new type of #CRNum.
*
* Returns CR_OK upon succesful completion, an error code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
* cr_num_is_fixed_length:
* @a_this: the current instance of #CRNum .
*
*Tests if the current instance of #CRNum is a fixed
*length value or not. Typically a fixed length value
*is anything from NUM_LENGTH_EM to NUM_LENGTH_PC.
*See the definition of #CRNumType to see what we mean.
*
*Returns TRUE if the instance of #CRNum is a fixed length number,
*FALSE otherwise.
*/
{
}
return result ;
}
/**
* cr_num_destroy:
*@a_this: the this pointer of
*the current instance of #CRNum.
*
*The destructor of #CRNum.
*/
void
{
}