From 95b56a703505e26f5457627934405c766ac926f5 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 5 Feb 2005 09:51:39 +0000 Subject: Moved 'static' functions into 'parserHelpers' class. --- src/propertySet.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/propertySet.cpp') diff --git a/src/propertySet.cpp b/src/propertySet.cpp index 1a128771..839e5600 100644 --- a/src/propertySet.cpp +++ b/src/propertySet.cpp @@ -18,6 +18,7 @@ // #include "vmime/propertySet.hpp" +#include "vmime/parserHelpers.hpp" namespace vmime @@ -92,7 +93,7 @@ void propertySet::parse(const string& props) for ( ; pos != end ; ) { // Skip white-spaces - for ( ; pos != end && isspace(*pos) ; ++pos); + for ( ; pos != end && parserHelpers::isspace(*pos) ; ++pos); if (pos != end) { @@ -109,7 +110,7 @@ void propertySet::parse(const string& props) string::const_iterator optEnd = pos; - for ( ; optEnd != optStart && isspace(*(optEnd - 1)) ; --optEnd); + for ( ; optEnd != optStart && parserHelpers::isspace(*(optEnd - 1)) ; --optEnd); const string option(optStart, optEnd); string value = "1"; @@ -119,7 +120,7 @@ void propertySet::parse(const string& props) ++pos; // skip '=' // Extract the value - for ( ; pos != end && isspace(*pos) ; ++pos); + for ( ; pos != end && parserHelpers::isspace(*pos) ; ++pos); if (pos != end) { @@ -158,7 +159,7 @@ void propertySet::parse(const string& props) { const string::const_iterator valStart = pos; - for ( ; pos != end && !isspace(*pos) ; ++pos); + for ( ; pos != end && !parserHelpers::isspace(*pos) ; ++pos); value = string(valStart, pos); } -- cgit v1.2.3