aboutsummaryrefslogtreecommitdiffstats
path: root/src/mediaType.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-01-02 17:17:12 +0000
committerVincent Richard <[email protected]>2005-01-02 17:17:12 +0000
commitaf06b4a56d6505a196e07a72aaa6b4b700ad5aa1 (patch)
treebb5c904096a5f9bffdf9526eac756420fe24f6f2 /src/mediaType.cpp
parentAdded unit tests for 'bodyPart'. (diff)
downloadvmime-af06b4a56d6505a196e07a72aaa6b4b700ad5aa1.tar.gz
vmime-af06b4a56d6505a196e07a72aaa6b4b700ad5aa1.zip
Added 'utility::datetimeUtils' + fixed 'stringUtils' not in namespace 'utility'.
Diffstat (limited to 'src/mediaType.cpp')
-rw-r--r--src/mediaType.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mediaType.cpp b/src/mediaType.cpp
index 1c350dac..565fc691 100644
--- a/src/mediaType.cpp
+++ b/src/mediaType.cpp
@@ -38,7 +38,8 @@ mediaType::mediaType(const string& type)
mediaType::mediaType(const string& type, const string& subType)
- : m_type(stringUtils::toLower(type)), m_subType(stringUtils::toLower(subType))
+ : m_type(utility::stringUtils::toLower(type)),
+ m_subType(utility::stringUtils::toLower(subType))
{
}
@@ -55,8 +56,9 @@ void mediaType::parse(const string& buffer, const string::size_type position,
while (p < pend && *p != '/') ++p;
- m_type = stringUtils::toLower(string(buffer.begin() + typeStart,
- buffer.begin() + position + (p - pstart)));
+ m_type = utility::stringUtils::toLower(
+ string(buffer.begin() + typeStart,
+ buffer.begin() + position + (p - pstart)));
if (p < pend)
{
@@ -64,8 +66,9 @@ void mediaType::parse(const string& buffer, const string::size_type position,
++p;
// Extract the sub-type
- m_subType = stringUtils::toLower(string(buffer.begin() + position + (p - pstart),
- buffer.begin() + end));
+ m_subType = utility::stringUtils::toLower(
+ string(buffer.begin() + position + (p - pstart),
+ buffer.begin() + end));
}
setParsedBounds(position, end);
@@ -147,7 +150,7 @@ const string& mediaType::getType() const
void mediaType::setType(const string& type)
{
- m_type = stringUtils::toLower(type);
+ m_type = utility::stringUtils::toLower(type);
}
@@ -159,7 +162,7 @@ const string& mediaType::getSubType() const
void mediaType::setSubType(const string& subType)
{
- m_subType = stringUtils::toLower(subType);
+ m_subType = utility::stringUtils::toLower(subType);
}