summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-28 19:46:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-28 19:46:18 +0000
commit21361a5df873316c55c3e4e494249377149b2334 (patch)
tree410c4f3b4475ee721a412302d51cf27529530e30 /crawl-ref/source/libutil.h
parentb94440dcf7c44d70948fb30166651cc0c13145b9 (diff)
downloadcrawl-ref-21361a5df873316c55c3e4e494249377149b2334.tar.gz
crawl-ref-21361a5df873316c55c3e4e494249377149b2334.zip
Add whitespace fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index 6ed7838811..e3a0f06105 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -1,6 +1,6 @@
/*
* File: libutil.h
- * Summary: System independent functions
+ * Summary: System independent functions
*
* Modified for Crawl Reference by $Author$ on $Date$
*/
@@ -108,9 +108,9 @@ inline bool ends_with(const std::string &s, const std::string &suffix)
// remainder of the string as the last segment; negative values of nsplits
// split on all occurrences of the separator.
std::vector<std::string> split_string(
- const std::string &sep,
- std::string s,
- bool trim = true,
+ const std::string &sep,
+ std::string s,
+ bool trim = true,
bool accept_empties = false,
int nsplits = -1);
@@ -189,7 +189,7 @@ public:
{
return oldval;
}
-
+
private:
T &val;
T oldval;
@@ -210,7 +210,7 @@ template <p_compile pcomp, p_free pfree, p_match pmatch>
class basic_text_pattern : public base_pattern
{
public:
- basic_text_pattern(const std::string &s, bool icase = false)
+ basic_text_pattern(const std::string &s, bool icase = false)
: pattern(s), compiled_pattern(NULL),
isvalid(true), ignore_case(icase)
{
@@ -302,7 +302,7 @@ public:
{
return pattern;
}
-
+
private:
std::string pattern;
mutable void *compiled_pattern;
@@ -333,7 +333,7 @@ public:
{
ms_current_mode = m_previous_mode;
}
-
+
static mouse_mode current_mode() { return ms_current_mode; }
private: