From 16d695eee026947899f2168905bae39f4e3c5895 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Mar 2024 20:31:44 +0100 Subject: replace char* with utf8_int8_t* --- src/search.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/search.h') diff --git a/src/search.h b/src/search.h index f92ada5..b8cfb24 100644 --- a/src/search.h +++ b/src/search.h @@ -53,17 +53,17 @@ typedef struct t_ts_text_match int line_nr; int word_offset; int word_match_len; - char *line_start; - char *line_info; + utf8_int8_t *line_start; + utf8_int8_t *line_info; } ts_text_match; extern ts_search_result* current_search_result; -ts_array ts_get_filters(char *pattern); -int ts_filter_matches(ts_array *filters, char *string, char **matched_filter); -int ts_string_match(char *first, char *second); +ts_array ts_get_filters(utf8_int8_t *pattern); +int ts_filter_matches(ts_array *filters, utf8_int8_t *string, utf8_int8_t **matched_filter); +int ts_string_match(utf8_int8_t *first, utf8_int8_t *second); ts_search_result* ts_create_empty_search_result(); -bool ts_string_contains(char *text_to_search, char *text_to_find, ts_array *text_matches); +bool ts_string_contains(utf8_int8_t *text_to_search, utf8_int8_t *text_to_find, ts_array *text_matches); void ts_start_search(utf8_int8_t* path, utf8_int8_t* filter, utf8_int8_t* query); #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2