From af06b4a56d6505a196e07a72aaa6b4b700ad5aa1 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 2 Jan 2005 17:17:12 +0000 Subject: Added 'utility::datetimeUtils' + fixed 'stringUtils' not in namespace 'utility'. --- src/header.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/header.cpp') 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 ::const_iterator pos = m_fields.begin(); const std::vector ::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 ::const_iterator pos = m_fields.begin(); const std::vector ::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 header::findAllFields(const string& fieldName) { - const string name = stringUtils::toLower(fieldName); + const string name = utility::stringUtils::toLower(fieldName); std::vector result; @@ -346,7 +346,7 @@ std::vector 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 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 ::const_iterator pos = m_fields.begin(); const std::vector ::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) -- cgit v1.2.3