summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-28 11:28:11 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-28 11:28:11 +0000
commitd4065da159cb407f1680de9f03596cd397ded525 (patch)
treefc32656471babe9ddeb97e6cd8937adcd6b760a0 /crawl-ref/source/libutil.h
parent20a6609453ee2b51c388c296516c1abc1beab1d2 (diff)
downloadcrawl-ref-d4065da159cb407f1680de9f03596cd397ded525.tar.gz
crawl-ref-d4065da159cb407f1680de9f03596cd397ded525.zip
Added new orc entries and vaults (Lemuel).
Added support to the map designer for specifying the monster-type for zombies, skeletons, simulacra and spectral things. Also allow specifying the number of heads for hydras ("12-headed hydra"). Fixed lexer rule bug (IDENTIFIER). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1490 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index 3cd5c6c5c9..a36d632c81 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -29,6 +29,13 @@ int unmangle_direction_keys(int keyin, int keymap = 0,
void lowercase(std::string &s);
void uppercase(std::string &s);
+bool ends_with(const std::string &s, const std::string &suffix);
+
+/**
+ * Returns 1 + the index of the first suffix that matches the given string,
+ * 0 if no suffixes match.
+ */
+int ends_with(const std::string &s, const char *suffixes[]);
std::string strip_filename_unsafe_chars(const std::string &s);