OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
base
openvas_string.h
Go to the documentation of this file.
1
/* openvas-libraries/base
2
* $Id$
3
* Description: String utilities.
4
*
5
* Authors:
6
* Matthew Mundell <matt@mundell.ukfsn.org>
7
* Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
8
*
9
* Copyright:
10
* Copyright (C) 2009 Greenbone Networks GmbH
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License version 2,
14
* or, at your option, any later version as published by the Free
15
* Software Foundation
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25
*/
26
27
#ifndef _OPENVAS_LIBRARIES_STRING_H
28
#define _OPENVAS_LIBRARIES_STRING_H
29
30
#include <glib.h>
31
32
typedef
gchar *
string
;
33
34
void
openvas_append_string
(
string
*,
const
gchar *);
35
void
openvas_append_text
(
string
*,
const
gchar *, gsize);
36
void
openvas_free_string_var
(
string
*);
37
38
char
*
openvas_strip_space
(
char
*,
char
*);
39
40
int
openvas_isalnumstr
(
const
char
*);
41
42
int
openvas_isbase64
(
const
char
*);
43
44
gboolean
openvas_strv_contains_str
(gchar ** strv,
const
gchar * str);
45
46
gchar*
openvas_string_flatten_string_list
(GSList* string_list,
47
const
gchar* separator);
48
49
void
openvas_string_list_free
(GSList* string_list);
50
51
gchar *
52
openvas_string_list_to_xml
(
const
GSList * string_list,
const
gchar * root,
53
const
gchar * child);
54
55
#endif
/* not _OPENVAS_LIBRARIES_STRING_H */
Generated by
1.8.4