diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-21 05:11:51 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-21 05:11:51 +0000 |
commit | e6f92f58fb62ddc074838485a4dac3ce5d068a8d (patch) | |
tree | ee54c4fa76b0f06d48e398e3d0faf5e1adb31880 /crawl-ref/source/database.h | |
parent | 1640dccce5b2bab627f03607f80bfc7cd4b57327 (diff) | |
download | crawl-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.h | 7 |
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 ®ex, + bool ignore_case = false); + +std::string getLongDescription(const std::string &key); +std::vector<std::string> getLongDescriptionByRegex(const std::string ®ex); std::string getShoutString(const std::string &monst, const std::string &suffix = ""); |