summaryrefslogtreecommitdiff
path: root/src/string_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-23 07:46:50 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-04-24 08:02:54 +0200
commit5202869f0fec5512211988b35b1ee4b29a33686d (patch)
treeec00d6173df3abb5fd0d29d6cb5d60108179a01a /src/string_func.h
parentb14f4121170cb75aba785efc9e73a364c232301b (diff)
downloadopenttd-5202869f0fec5512211988b35b1ee4b29a33686d.tar.xz
Add: String functionality to trim spaces from C-style strings
Diffstat (limited to 'src/string_func.h')
-rw-r--r--src/string_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string_func.h b/src/string_func.h
index 13e14f2d3..6c894b3cb 100644
--- a/src/string_func.h
+++ b/src/string_func.h
@@ -49,6 +49,7 @@ bool strtolower(char *str);
bool strtolower(std::string &str, std::string::size_type offs = 0);
bool StrValid(const char *str, const char *last);
+void StrTrimInPlace(char *str);
/**
* Check if a string buffer is empty.