summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 20:31:44 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 20:31:44 +0100
commit16d695eee026947899f2168905bae39f4e3c5895 (patch)
treef10c9149df7f573e412ac4f0836b0be01987b239 /src
parente49f9f584612700f322916d03b6bcc91ddb136ec (diff)
replace char* with utf8_int8_t*
Diffstat (limited to 'src')
-rw-r--r--src/search.h12
1 files changed, 6 insertions, 6 deletions
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