aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoding.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/encoding.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/encoding.cpp')
-rw-r--r--src/encoding.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp
index 2ccded09..3e499ecc 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -35,7 +35,7 @@ encoding::encoding()
encoding::encoding(const string& name)
- : m_name(stringUtils::toLower(name))
+ : m_name(utility::stringUtils::toLower(name))
{
}
@@ -49,7 +49,8 @@ encoding::encoding(const encoding& enc)
void encoding::parse(const string& buffer, const string::size_type position,
const string::size_type end, string::size_type* newPosition)
{
- m_name = stringUtils::toLower(string(buffer.begin() + position, buffer.begin() + end));
+ m_name = utility::stringUtils::toLower
+ (string(buffer.begin() + position, buffer.begin() + end));
setParsedBounds(position, end);
@@ -83,14 +84,14 @@ encoding& encoding::operator=(const encoding& other)
encoding& encoding::operator=(const string& name)
{
- m_name = stringUtils::toLower(name);
+ m_name = utility::stringUtils::toLower(name);
return (*this);
}
const bool encoding::operator==(const encoding& value) const
{
- return (stringUtils::toLower(m_name) == value.m_name);
+ return (utility::stringUtils::toLower(m_name) == value.m_name);
}