/* -*- 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.
*/
#include <string.h>
#include "cr-string.h"
/**
*Instanciates a #CRString
*@return the newly instanciated #CRString
*Must be freed with cr_string_destroy().
*/
CRString *
cr_string_new (void)
{
if (!result) {
cr_utils_trace_info ("Out of memory") ;
return NULL ;
}
return result ;
}
/**
*Instanciate a string and initialise it to
*a_string.
*@param a_string the initial string
*@return the newly instanciated string.
*/
CRString *
{
result = cr_string_new () ;
if (!result) {
cr_utils_trace_info ("Out of memory") ;
return NULL ;
}
if (a_string)
return result ;
}
/**
*Instanciates a #CRString from an instance of GString.
*@param a_string the input string that will be copied into
*the newly instanciated #CRString
*@return the newly instanciated #CRString.
*/
CRString *
{
result = cr_string_new () ;
if (!result) {
cr_utils_trace_info ("Out of memory") ;
return NULL ;
}
if (a_string) {
}
return result ;
}
CRString *
{
if (!result) {
cr_utils_trace_info ("Out of memory") ;
return NULL ;
}
return result ;
}
gchar *
{
if (a_this
}
return result ;
}
/**
*Returns a pointer to the internal raw NULL terminated string
*of the current instance of #CRString.
*@param a_this the current instance of #CRString
*/
const gchar *
{
return NULL ;
}
/**
*Returns the length of the internal raw NULL terminated
*string of the current instance of #CRString.
*@param a_this the current instance of #CRString.
*@return the len of the internal raw NULL termninated string,
*of -1 if no length can be returned.
*/
{
-1) ;
}
/**
*@param a_this the #CRString to destroy.
*/
void
{
}
}