diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-21 12:17:29 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-21 12:17:29 +0000 |
commit | 9843737e73a47ef6f1da0554b7ca73018d52d345 (patch) | |
tree | 9381ef8b914bc801386f62ce2713c59c17b6a9e8 /crawl-ref/source/libutil.h | |
parent | b27a757b68bf8a1dcbcb9b3a5cfea5c1278c9bb4 (diff) | |
download | crawl-ref-9843737e73a47ef6f1da0554b7ca73018d52d345.tar.gz crawl-ref-9843737e73a47ef6f1da0554b7ca73018d52d345.zip |
Updated level-design.txt.
Moved map markers to mapmark.cc.
Added support for timer markers that remove a feature after a certain timeout.
Need to hook up messaging to Lua.
Added bazaars (need more bazaar layouts).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1899 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 0f425ff7cd..990463852f 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -26,6 +26,12 @@ std::string &lowercase(std::string &s); std::string &uppercase(std::string &s); bool ends_with(const std::string &s, const std::string &suffix); +// String "tags" +#define TAG_UNFOUND -20404 +bool strip_tag(std::string &s, const std::string &tag, bool nopad = false); +int strip_number_tag(std::string &s, const std::string &tagprefix); +std::string strip_tag_prefix(std::string &s, const std::string &tagprefix); + std::string article_a(const std::string &name, bool lowercase = true); std::string pluralise(const std::string &name, const char *stock_plural_quals[] = standard_plural_qualifiers, |