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/libutil.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/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 183f6fac2f..fc42023f70 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -102,6 +102,13 @@ inline std::string lowercase_first(std::string s) return (s); } +inline std::string uppercase_first(std::string s) +{ + if (s.length()) + s[0] = toupper(s[0]); + return (s); +} + template <typename Z> std::string comma_separated_line(Z start, Z end, const std::string &andc = " and ", |