aboutsummaryrefslogtreecommitdiff
path: root/include/HtmlParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/HtmlParser.h')
-rw-r--r--include/HtmlParser.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h
index 72de123..48660da 100644
--- a/include/HtmlParser.h
+++ b/include/HtmlParser.h
@@ -11,7 +11,7 @@
typedef struct {
const char *data;
size_t size;
-} StringView;
+} HtmlStringView;
typedef struct HtmlParser HtmlParser;
@@ -34,16 +34,16 @@ struct HtmlParser {
HtmlParseCallback parse_callback;
void *callback_userdata;
- StringView tag_name;
- StringView attribute_key;
- StringView attribute_value;
- StringView text;
+ HtmlStringView tag_name;
+ HtmlStringView attribute_key;
+ HtmlStringView attribute_value;
+ HtmlStringView text;
int is_tag_void;
int inside_script_tag;
size_t unclosed_tags_offset;
- StringView unclosed_tags[UNCLOSED_TAGS_SIZE];
+ HtmlStringView unclosed_tags[UNCLOSED_TAGS_SIZE];
};
void html_parser_init(HtmlParser *self, const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);