1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library. |
---|
3 | |
---|
4 | Copyright (C) 1997 Martin Jones (mjones@kde.org) |
---|
5 | Copyright (C) 1997 Torben Weis (weis@kde.org) |
---|
6 | Copyright (C) 2000 Helix Code, Inc. |
---|
7 | |
---|
8 | This library is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU Library General Public |
---|
10 | License as published by the Free Software Foundation; either |
---|
11 | version 2 of the License, or (at your option) any later version. |
---|
12 | |
---|
13 | This library is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | Library General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU Library General Public License |
---|
19 | along with this library; see the file COPYING.LIB. If not, write to |
---|
20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
21 | Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | #ifndef _HTMLSTRINGTOKENIZER_H_ |
---|
24 | #define _HTMLSTRINGTOKENIZER_H_ |
---|
25 | |
---|
26 | |
---|
27 | #include <glib.h> |
---|
28 | |
---|
29 | |
---|
30 | struct _HTMLStringTokenizer { |
---|
31 | gchar *buffer; |
---|
32 | gint buffer_length; |
---|
33 | |
---|
34 | gchar *pos; |
---|
35 | gchar *end; |
---|
36 | }; |
---|
37 | |
---|
38 | |
---|
39 | HTMLStringTokenizer *html_string_tokenizer_new (void); |
---|
40 | void html_string_tokenizer_destroy (HTMLStringTokenizer *st); |
---|
41 | void html_string_tokenizer_tokenize (HTMLStringTokenizer *t, |
---|
42 | const gchar *str, |
---|
43 | gchar *separators); |
---|
44 | gboolean html_string_tokenizer_has_more_tokens (HTMLStringTokenizer *t); |
---|
45 | gchar *html_string_tokenizer_next_token (HTMLStringTokenizer *t); |
---|
46 | |
---|
47 | #endif /* _HTMLSTRINGTOKENIZER_H_ */ |
---|