diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-03-23 11:26:53 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-03-23 11:26:53 +0100 |
| commit | 6e1eaaf13a13584294c6a090ef40500cd786f56f (patch) | |
| tree | f2234a8a6b1a6a150a7cac44ea43fbf5dd31d1eb /src/parse.h | |
Initial commit
Diffstat (limited to 'src/parse.h')
| -rw-r--r-- | src/parse.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse.h b/src/parse.h new file mode 100644 index 0000000..516b171 --- /dev/null +++ b/src/parse.h @@ -0,0 +1,7 @@ +#include "leven.h" + +// Chunk offsets for each node in the tree +// chunks[nodeId] = start position of the tag in the original string +// The end position is implicitly the start of the next tag or the end of the string + +int parse_string(char *str, struct Tree *tree, size_t **chunks); |
