diff options
author | Vincent Richard <[email protected]> | 2005-01-02 17:17:12 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-02 17:17:12 +0000 |
commit | af06b4a56d6505a196e07a72aaa6b4b700ad5aa1 (patch) | |
tree | bb5c904096a5f9bffdf9526eac756420fe24f6f2 /src/header.cpp | |
parent | Added unit tests for 'bodyPart'. (diff) | |
download | vmime-af06b4a56d6505a196e07a72aaa6b4b700ad5aa1.tar.gz vmime-af06b4a56d6505a196e07a72aaa6b4b700ad5aa1.zip |
Added 'utility::datetimeUtils' + fixed 'stringUtils' not in namespace 'utility'.
Diffstat (limited to 'src/header.cpp')
-rw-r--r-- | src/header.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/header.cpp b/src/header.cpp index 67435241..c798d107 100644 --- a/src/header.cpp +++ b/src/header.cpp @@ -300,12 +300,12 @@ header& header::operator=(const header& other) const bool header::hasField(const string& fieldName) const { - const string name = stringUtils::toLower(fieldName); + const string name = utility::stringUtils::toLower(fieldName); std::vector <headerField*>::const_iterator pos = m_fields.begin(); const std::vector <headerField*>::const_iterator end = m_fields.end(); - for ( ; pos != end && stringUtils::toLower((*pos)->getName()) != name ; ++pos); + for ( ; pos != end && utility::stringUtils::toLower((*pos)->getName()) != name ; ++pos); return (pos != end); } @@ -313,13 +313,13 @@ const bool header::hasField(const string& fieldName) const headerField* header::findField(const string& fieldName) const { - const string name = stringUtils::toLower(fieldName); + const string name = utility::stringUtils::toLower(fieldName); // Find the first field that matches the specified name std::vector <headerField*>::const_iterator pos = m_fields.begin(); const std::vector <headerField*>::const_iterator end = m_fields.end(); - for ( ; pos != end && stringUtils::toLower((*pos)->getName()) != name ; ++pos); + for ( ; pos != end && utility::stringUtils::toLower((*pos)->getName()) != name ; ++pos); // No field with this name can be found if (pos == end) @@ -336,7 +336,7 @@ headerField* header::findField(const string& fieldName) const std::vector <headerField*> header::findAllFields(const string& fieldName) { - const string name = stringUtils::toLower(fieldName); + const string name = utility::stringUtils::toLower(fieldName); std::vector <headerField*> result; @@ -346,7 +346,7 @@ std::vector <headerField*> header::findAllFields(const string& fieldName) for ( ; pos != end ; ++pos) { // Add the header if it matches the specified type - if (stringUtils::toLower((*pos)->getName()) == name) + if (utility::stringUtils::toLower((*pos)->getName()) == name) { result.push_back(*pos); } @@ -358,13 +358,13 @@ std::vector <headerField*> header::findAllFields(const string& fieldName) headerField* header::getField(const string& fieldName) { - const string name = stringUtils::toLower(fieldName); + const string name = utility::stringUtils::toLower(fieldName); // Find the first field that matches the specified name std::vector <headerField*>::const_iterator pos = m_fields.begin(); const std::vector <headerField*>::const_iterator end = m_fields.end(); - for ( ; pos != end && stringUtils::toLower((*pos)->getName()) != name ; ++pos); + for ( ; pos != end && utility::stringUtils::toLower((*pos)->getName()) != name ; ++pos); // If no field with this name can be found, create a new one if (pos == end) |