summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/database.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-21 05:11:51 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-21 05:11:51 +0000
commite6f92f58fb62ddc074838485a4dac3ce5d068a8d (patch)
treeee54c4fa76b0f06d48e398e3d0faf5e1adb31880 /crawl-ref/source/database.h
parent1640dccce5b2bab627f03607f80bfc7cd4b57327 (diff)
downloadcrawl-ref-e6f92f58fb62ddc074838485a4dac3ce5d068a8d.tar.gz
crawl-ref-e6f92f58fb62ddc074838485a4dac3ce5d068a8d.zip
Can now search the description database by name (keyword) with '?/'.
Not adding to 0.3-branch yet in case it needs some tweaks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2170 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/database.h')
-rw-r--r--crawl-ref/source/database.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/database.h b/crawl-ref/source/database.h
index e1cb3f230e..b30d8814e6 100644
--- a/crawl-ref/source/database.h
+++ b/crawl-ref/source/database.h
@@ -40,7 +40,12 @@ void databaseSystemShutdown();
DBM *openDB(const char *dbFilename);
datum database_fetch(DBM *database, const std::string &key);
-std::string getLongDescription(const std::string &key);
+std::vector<std::string> database_find_keys(DBM *database,
+ const std::string &regex,
+ bool ignore_case = false);
+
+std::string getLongDescription(const std::string &key);
+std::vector<std::string> getLongDescriptionByRegex(const std::string &regex);
std::string getShoutString(const std::string &monst,
const std::string &suffix = "");