57typedef enum : uint8_t {
const char * mdl_search_placeholder(void)
The {q} placeholder a search-URL template must contain.
mdl_search_outcome_t
The honest outcome of a parsed search/browse results page.
@ k_mdl_search_markup_changed
No links at all: the page could not be read.
@ k_mdl_search_have_results
One or more hits matched; print them.
@ k_mdl_search_zero_results
Links present, none matched: a real no-hit.
size_t mdl_search_filter_series_hits(mdl_hit_list_t *hits, const char *chapter_marker)
Remove chapter links and duplicate series URLs from discovery hits.
bool mdl_query_encode(const char *term, char *out, size_t cap)
Percent-encode a raw query term for safe inclusion in a URL.
mdl_search_outcome_t mdl_search_classify(const mdl_hit_list_t *hits)
Classify a parsed results page into an honest search outcome.
bool mdl_search_build_url(const char *tmpl, const char *encoded_term, char *out, size_t cap)
Expand a query-URL template by substituting the encoded term for {q}.
Bounded list of titled hits plus the raw anchor tally.