/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2011,2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2011,2012,2013,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
return result;
}
-std::string concatenateStrings(const char *const *sarray, size_t count)
-{
- std::string result;
-
- for (size_t i = 0; i < count && sarray[i] != NULL; ++i)
- {
- if (sarray[i][0] != '\0')
- {
- result.append(sarray[i]);
- char lastchar = sarray[i][std::strlen(sarray[i])-1];
- if (!std::isspace(lastchar))
- {
- result.append(" ");
- }
- }
- }
- result.resize(result.find_last_not_of(" \n\r\t") + 1);
- return result;
-}
-
namespace
{
TextLineWrapperSettings::TextLineWrapperSettings()
: maxLength_(0), indent_(0), firstLineIndent_(-1),
- bStripLeadingWhitespace_(true), continuationChar_('\0')
+ bStripLeadingWhitespace_(false), continuationChar_('\0')
{
}