aboutsummaryrefslogtreecommitdiffstats
path: root/src/propertySet.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-02-05 09:51:39 +0000
committerVincent Richard <[email protected]>2005-02-05 09:51:39 +0000
commit95b56a703505e26f5457627934405c766ac926f5 (patch)
tree5406cf16c1bbdde6fe681ea302a743b5f1238d77 /src/propertySet.cpp
parentRemoved extra '::' before numeric constants. (diff)
downloadvmime-95b56a703505e26f5457627934405c766ac926f5.tar.gz
vmime-95b56a703505e26f5457627934405c766ac926f5.zip
Moved 'static' functions into 'parserHelpers' class.
Diffstat (limited to 'src/propertySet.cpp')
-rw-r--r--src/propertySet.cpp9
1 files changed, 5 insertions, 4 deletions
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);
}