summaryrefslogtreecommitdiff
path: root/src/search.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-09 19:06:53 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-09 19:06:53 +0100
commit03c271c82ccb434997fdde7bac140bb86b48accd (patch)
tree748a39e554f4edd82c86f24266967b01cca8bff1 /src/search.h
parente20735fe0a67c1fa3de16c10124bdc778acd88a8 (diff)
toggle case match
Diffstat (limited to 'src/search.h')
-rw-r--r--src/search.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search.h b/src/search.h
index b56e007..8bc6260 100644
--- a/src/search.h
+++ b/src/search.h
@@ -38,6 +38,7 @@ typedef struct t_ts_search_result
utf8_int8_t *search_text;
int max_ts_thread_count;
uint64_t max_file_size;
+ bool respect_capitalization;
} ts_search_result;
typedef struct t_ts_file_match
@@ -64,8 +65,8 @@ ts_array ts_get_filters(utf8_int8_t *pattern);
size_t 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(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, int thread_count, int max_file_size);
+bool ts_string_contains(utf8_int8_t *text_to_search, utf8_int8_t *text_to_find, ts_array *text_matches, bool respect_capitalization);
+void ts_start_search(utf8_int8_t *path, utf8_int8_t *filter, utf8_int8_t *query, int thread_count, int max_file_size, bool respect_capitalization);
void ts_destroy_result(ts_search_result* result);
#endif \ No newline at end of file