/ gwstringbuffer.h / Content
/*  GWhere
 *  Copyright (C) 2000  Sébastien LECACHEUR
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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 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.
 */





#ifndef GW_DATA_STRING_BUFFER_H
#define GW_DATA_STRING_BUFFER_H



typedef struct string_buffer_s GWStringBuffer;



GWStringBuffer * gw_string_buffer_new ( void);



GWStringBuffer * gw_string_buffer_new_from_str ( const gchar *str);



gulong gw_string_buffer_resize ( GWStringBuffer *p, gulong newsize);



gulong gw_string_buffer_delete ( GWStringBuffer *p, gulong start, gulong end);



gulong gw_string_buffer_delete_all ( GWStringBuffer *p);



void gw_string_buffer_set_str ( GWStringBuffer *p, gchar *str, gulong len);



void gw_string_buffer_append_str ( GWStringBuffer *p, gchar *str, gulong len);



void gw_string_buffer_insert_str ( GWStringBuffer *p, gchar *str, gulong start, gulong len);



void gw_string_buffer_replace_str ( GWStringBuffer *p, gchar *str, gulong start, gulong end);



void gw_string_buffer_replace_chr ( GWStringBuffer *p, gchar chr, gulong index);



gchar * gw_string_buffer_get_str ( GWStringBuffer *p);



gulong gw_string_buffer_get_size ( GWStringBuffer *p);



void gw_string_buffer_free ( GWStringBuffer *p);


#endif