aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-06-06 02:50:51 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-06 02:50:51 +0200
commit9b45f8fe806b78300109274e4c951f894ffbac70 (patch)
tree14a14cafd00ee2420881a05958f5cfed0e562f42 /include
parentf62af612c6e6217d7b2a1b064cdf10383524302b (diff)
Convert uppercase to lowercase for tag and attribute name, fix missing is_identifier_char
Diffstat (limited to 'include')
-rw-r--r--include/HtmlParser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h
index 45dc1e1..7536777 100644
--- a/include/HtmlParser.h
+++ b/include/HtmlParser.h
@@ -9,7 +9,7 @@
#include <stddef.h>
typedef struct {
- const char *data;
+ char *data;
size_t size;
} HtmlStringView;
@@ -28,7 +28,7 @@ typedef void (*HtmlParseCallback)(HtmlParser *html_parser, HtmlParseType parse_t
#define UNCLOSED_TAGS_SIZE 2048
struct HtmlParser {
- const char *source;
+ char *source;
size_t source_len;
size_t offset;
HtmlParseCallback parse_callback;
@@ -48,7 +48,7 @@ struct HtmlParser {
};
/* Note: HTML_PARSE_TAG_START is guaranteed to be called for a tag before HTML_PARSE_TAG_END */
-void html_parser_init(HtmlParser *self, const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);
+void html_parser_init(HtmlParser *self, char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);
void html_parser_deinit(HtmlParser *self);
void html_parser_parse(HtmlParser *self);