OpenVAS Libraries
4.0+rc3.SVN
|
00001 /* openvas-libraries/base 00002 * $Id$ 00003 * Description: String utilities. 00004 * 00005 * Authors: 00006 * Matthew Mundell <matt@mundell.ukfsn.org> 00007 * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> 00008 * 00009 * Copyright: 00010 * Copyright (C) 2009 Greenbone Networks GmbH 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License version 2, 00014 * or, at your option, any later version as published by the Free 00015 * Software Foundation 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00025 */ 00026 00027 #ifndef _OPENVAS_LIBRARIES_STRING_H 00028 #define _OPENVAS_LIBRARIES_STRING_H 00029 00030 #include <glib.h> 00031 00032 typedef gchar *string; 00033 00034 void openvas_append_string (string *, const gchar *); 00035 void openvas_append_text (string *, const gchar *, gsize); 00036 void openvas_free_string_var (string *); 00037 00038 char *openvas_strip_space (char *, char *); 00039 00040 int openvas_isalnumstr (const char *); 00041 00042 int openvas_isbase64 (const char *); 00043 00044 gboolean openvas_strv_contains_str (gchar ** strv, const gchar * str); 00045 00046 gchar* openvas_string_flatten_string_list (GSList* string_list, 00047 const gchar* separator); 00048 00049 void openvas_string_list_free (GSList* string_list); 00050 00051 #endif /* not _OPENVAS_LIBRARIES_STRING_H */