I am developing a code editor for html, css, php, js in Qt. I need that after each change by the user of the code in the text field, the program runs through the data and displays those that begin with what the user entered keywords / functions. I have a list of php function prototypes. Tell me, please, how best to organize the search for the right words in this huge amount of information? After all, it is necessary that all this work very quickly. I look towards databases. Then I will need to parse all the stubs with github'a (link above) and write them to the database. Or is there a better way? What do smart people do in such cases?
The attached image is what I want to get in the end.
