1
0

Fixed coding conventions for Pull Request #1807

This commit is contained in:
flx5
2015-03-11 20:02:11 +01:00
parent d8ab99e944
commit f6912bd01c
5 changed files with 32 additions and 24 deletions

View File

@@ -170,7 +170,12 @@ AStringVector StringSplitWithQuotes(const AString & str, const AString & delim)
{
AString current = str.substr(Prev);
if ((current.length() >= 2) && ((current.front() == '"') || (current.front() == '\'')) && (current.front() == current.back()))
// If the remant is wrapped in matching quotes, remove them:
if (
(current.length() >= 2) &&
((current.front() == '"') || (current.front() == '\'')) &&
(current.front() == current.back())
)
{
current = current.substr(1, current.length() - 2);
}