From 9843737e73a47ef6f1da0554b7ca73018d52d345 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 21 Jul 2007 12:17:29 +0000 Subject: 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 --- crawl-ref/source/libutil.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/libutil.h') 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, -- cgit v1.2.3-54-g00ecf