2007-12-30 16:41:49 +00:00
|
|
|
/***************************************************************************
|
|
|
|
|
2009-08-17 10:41:51 +00:00
|
|
|
gb_str.h
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2018-02-12 02:53:46 +01:00
|
|
|
(c) 2000-2017 Benoît Minisini <g4mba5@gmail.com>
|
2007-12-30 16:41:49 +00:00
|
|
|
|
|
|
|
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
|
2009-08-17 10:41:51 +00:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 16:41:49 +00:00
|
|
|
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
|
2011-06-03 00:51:09 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
2011-12-31 02:39:20 +00:00
|
|
|
MA 02110-1301, USA.
|
2007-12-30 16:41:49 +00:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __GB_STR_H
|
|
|
|
#define __GB_STR_H
|
|
|
|
|
2008-03-11 13:29:47 +00:00
|
|
|
#include "gb_alloc.h"
|
|
|
|
|
2009-07-08 19:57:50 +00:00
|
|
|
char *STR_copy(const char *str);
|
2010-04-25 10:46:57 +00:00
|
|
|
char *STR_copy_len(const char *str, int len);
|
2009-07-08 19:57:50 +00:00
|
|
|
char *STR_cat(const char *str, ...);
|
2018-05-17 01:13:56 +02:00
|
|
|
char *STR_upper(const char *str);
|
|
|
|
char *STR_lower(const char *str);
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2013-03-29 23:33:01 +00:00
|
|
|
#define STR_free(_str) IFREE(_str)
|
2018-05-24 00:31:58 +02:00
|
|
|
char *STR_free_later(char *str);
|
|
|
|
|
|
|
|
void STR_add(char **str, const char *fmt, ...);
|
2018-05-25 21:01:38 +02:00
|
|
|
char *STR_print(const char *fmt, ...);
|
2018-05-24 00:31:58 +02:00
|
|
|
void STR_vadd(char **str, const char *fmt, va_list args);
|
2008-03-11 13:29:47 +00:00
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
#endif
|