summaryrefslogtreecommitdiff
path: root/src/parse.h
blob: 0de0d5095df68036222158ffb03bff1db02ac2bf (plain)
1
2
3
4
5
6
7
8
#include "leven.h"
#include <sys/types.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, ssize_t **chunks);