summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-10 08:32:25 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-10 08:32:25 +0000
commit16c8c1117fda477278eaf4983d93df1fa83e603a (patch)
tree5d4ce9f6f49c7a7881f776223cdc2bb114a898a9 /crawl-ref/source/libutil.h
parent4ac70419ee6014d865b26f38d9c3a4fa08bdb2c2 (diff)
downloadcrawl-ref-16c8c1117fda477278eaf4983d93df1fa83e603a.tar.gz
crawl-ref-16c8c1117fda477278eaf4983d93df1fa83e603a.zip
Allow spaces, dashes and periods in character names.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@607 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index 4378e029b3..0009f28882 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -21,11 +21,13 @@
void lowercase(std::string &s);
void uppercase(std::string &s);
+std::string strip_filename_unsafe_chars(const std::string &s);
+
std::string make_stringf(const char *format, ...);
-std::string replace_all(std::string s,
- const std::string &tofind,
- const std::string &replacement);
+std::string replace_all_of(std::string s,
+ const std::string &tofind,
+ const std::string &replacement);
int count_occurrences(const std::string &text, const std::string &searchfor);