Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-26 14:55:35 +0000
committerStijn Buys <ingar@osirion.org>2010-09-26 14:55:35 +0000
commit765927f9f0e9ca751e1d94bd86aaf47200dcdb81 (patch)
tree3eae4aeaad9b38ab8ea1d4287359542ebe4486a3 /src/auxiliary
parentaeef4449ce3c1bdc531fb90699fef68bd48ca644 (diff)
moved trading definitions from station.ini to the zone.ini
Diffstat (limited to 'src/auxiliary')
-rw-r--r--src/auxiliary/functions.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc
index 5dbc012..47f7fb2 100644
--- a/src/auxiliary/functions.cc
+++ b/src/auxiliary/functions.cc
@@ -135,10 +135,11 @@ const std::string lowercase(const std::string &text)
void trim(std::string &text)
{
- while (text.size() && text[0] == ' ') {
+ // remove spaces and tabs
+ while (text.size() && ((text[0] == ' ') || (text[0] == 9))) {
text.erase(0, 1);
}
- while (text.size() && text[text.size()-1] == ' ') {
+ while (text.size() && ((text[text.size()-1] == ' ') || (text[text.size()-1] == 9))) {
text.erase(text.size() - 1, 1);
}
}