2017-11-29 23:00:14 +00:00
|
|
|
/*
|
|
|
|
4coder_search.h - Types that are used in the search accross all buffers procedures.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FCODER_SEARCH_H)
|
|
|
|
#define FCODER_SEARCH_H
|
|
|
|
|
2019-07-13 03:19:24 +00:00
|
|
|
typedef u32 List_All_Locations_Flag;
|
|
|
|
enum{
|
|
|
|
ListAllLocationsFlag_CaseSensitive = 1,
|
|
|
|
ListAllLocationsFlag_MatchSubstring = 2,
|
|
|
|
};
|
2019-06-21 02:31:22 +00:00
|
|
|
|
2019-10-19 18:55:56 +00:00
|
|
|
struct Word_Complete_Iterator{
|
|
|
|
Application_Links *app;
|
|
|
|
Arena *arena;
|
2019-10-28 04:20:30 +00:00
|
|
|
|
2019-10-19 18:55:56 +00:00
|
|
|
Temp_Memory arena_restore;
|
|
|
|
Buffer_ID first_buffer;
|
|
|
|
Buffer_ID current_buffer;
|
|
|
|
String_Const_u8 needle;
|
|
|
|
|
|
|
|
List_String_Const_u8 list;
|
|
|
|
Node_String_Const_u8 *node;
|
|
|
|
Table_Data_u64 already_used_table;
|
|
|
|
};
|
|
|
|
|
2019-10-28 04:20:30 +00:00
|
|
|
struct Word_Complete_Menu{
|
|
|
|
Render_Caller_Function *prev_render_caller;
|
|
|
|
Word_Complete_Iterator *it;
|
|
|
|
String_Const_u8 options[8];
|
|
|
|
i32 count;
|
2018-05-10 08:12:47 +00:00
|
|
|
};
|
|
|
|
|
2017-11-29 23:00:14 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTOTM
|
|
|
|
|