Lines Matching refs:ftsp
391 lws_fts_search(struct lws_fts_file *jtf, struct lws_fts_search_params *ftsp) in lws_fts_search() argument
405 ftsp->results_head = NULL; in lws_fts_search()
407 if (!ftsp->needle) in lws_fts_search()
410 nl = (int)strlen(ftsp->needle); in lws_fts_search()
414 result = lwsac_use(&ftsp->results_head, sizeof(*result), 0); in lws_fts_search()
424 result->effective_flags = ftsp->flags; in lws_fts_search()
429 needle[n] = tolower(ftsp->needle[n]); in lws_fts_search()
614 if (!(ftsp->flags & LWSFTS_F_QUERY_FILES)) in lws_fts_search()
644 if (ftsp->only_filepath && strcmp(path, ftsp->only_filepath)) in lws_fts_search()
651 if (ftsp->flags & LWSFTS_F_QUERY_QUOTE_LINE) { in lws_fts_search()
661 if (ftsp->flags & LWSFTS_F_QUERY_FILE_LINES) { in lws_fts_search()
665 if (ftsp->flags & LWSFTS_F_QUERY_QUOTE_LINE) in lws_fts_search()
670 fp = lwsac_use(&ftsp->results_head, footprint, 0); in lws_fts_search()
687 if (ftsp->flags & LWSFTS_F_QUERY_FILE_LINES) { in lws_fts_search()
711 if (!(ftsp->flags & LWSFTS_F_QUERY_QUOTE_LINE)) in lws_fts_search()
735 p = lwsac_use(&ftsp->results_head, m + 1, 0); in lws_fts_search()
760 if (ftsp->only_filepath) in lws_fts_search()
797 if (!(ftsp->flags & LWSFTS_F_QUERY_AUTOCOMPLETE) || nac) in lws_fts_search()
821 budget = ftsp->max_autocomplete; in lws_fts_search()
837 n = ac_record(jtf, &ftsp->results_head, needle, pos, s, 0, in lws_fts_search()
854 n = ac_record(jtf, &ftsp->results_head, needle, pos, s, in lws_fts_search()