#include #include #include #include typedef struct Wordcut { } Wordcut; typedef struct TextRange { uintptr_t s; uintptr_t e; } TextRange; struct Wordcut *wordcut_new_with_dict(const char *path); struct Wordcut *wordcut_new_with_dict_from_default_dir(const char *path); void delete_wordcut(struct Wordcut *wordcut); void delete_text_ranges(struct TextRange *text_ranges, uintptr_t range_count); struct TextRange *wordcut_into_text_ranges(const struct Wordcut *wordcut, const char *text, uintptr_t *range_count); char **wordcut_into_strings(const struct Wordcut *wordcut, const char *text, uintptr_t *string_count); void delete_strings(char **strings, uintptr_t string_count); char *wordcut_put_delimiters(const struct Wordcut *wordcut, const char *text, const char *delim);