diff options
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 3ddbc998d4..ea97b2fcf8 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -35,7 +35,11 @@ bool cancelable_get_line( char *buf, int len, int wrapcol = 80, input_history *mh = NULL ); std::string & trim_string( std::string &str ); -std::vector<std::string> split_string(const char *sep, std::string s); +std::vector<std::string> split_string( + const char *sep, + std::string s, + bool trim = true, + bool accept_empties = false); #ifdef NEED_USLEEP void usleep( unsigned long time ); |