MCPcopy Create free account
hub / github.com/crawl/crawl / getAllFAQKeys

Function getAllFAQKeys

crawl-ref/source/database.cc:886–895  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////// FAQ DB specific functions.

Source from the content-addressed store, hash-verified

884/////////////////////////////////////////////////////////////////////////////
885// FAQ DB specific functions.
886vector<string> getAllFAQKeys()
887{
888 if (!FAQDB.get())
889 {
890 vector<string> empty;
891 return empty;
892 }
893
894 return _database_find_keys(FAQDB.get(), "^q.+", false);
895}
896
897string getFAQ_Question(const string &key)
898{

Callers 1

_handle_FAQFunction · 0.85

Calls 2

_database_find_keysFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected