summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Base64.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-02-25 10:16:26 +0000
committerMarc Laukien <marc@zeroc.com>2002-02-25 10:16:26 +0000
commit2c9f99274a48edc4ef171e532af6b02378835f06 (patch)
treefd06912f9b8127595cb967fa0b6e63a686b05e4e /cpp/src/IceUtil/Base64.cpp
parentcleanup; workarounds for Win32 problems (diff)
downloadice-2c9f99274a48edc4ef171e532af6b02378835f06.tar.bz2
ice-2c9f99274a48edc4ef171e532af6b02378835f06.tar.xz
ice-2c9f99274a48edc4ef171e532af6b02378835f06.zip
fix
Diffstat (limited to 'cpp/src/IceUtil/Base64.cpp')
-rw-r--r--cpp/src/IceUtil/Base64.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IceUtil/Base64.cpp b/cpp/src/IceUtil/Base64.cpp
index 7f65da07865..be9622528e1 100644
--- a/cpp/src/IceUtil/Base64.cpp
+++ b/cpp/src/IceUtil/Base64.cpp
@@ -98,15 +98,15 @@ IceUtil::Base64::encode(const ByteSeq& plainSeq)
}
IceUtil::ByteSeq
-IceUtil::Base64::decode(const string& _str)
+IceUtil::Base64::decode(const string& s)
{
string str;
- for (unsigned int j = 0; j < _str.length(); j++)
+ for (unsigned int j = 0; j < s.length(); j++)
{
- if (isBase64(_str[j]))
+ if (isBase64(s[j]))
{
- str += _str[j];
+ str += s[j];
}
}
@@ -118,8 +118,8 @@ IceUtil::Base64::decode(const string& _str)
}
// Figure out how long the final sequence is going to be.
- long lines = _str.size() / 78;
- long totalBytes = (lines * 76) + (((_str.size() - (lines * 78)) * 3) / 4);
+ long lines = s.size() / 78;
+ long totalBytes = (lines * 76) + (((s.size() - (lines * 78)) * 3) / 4);
retval.reserve(totalBytes);