diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-03 13:25:54 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-03 13:25:54 +0000 |
commit | 3242cd193fe183ff6b4e383b9db80b82848a6d02 (patch) | |
tree | 34836e6b43b851cbfa6ca7d86e4147d08b5ca67b /cppe/src/IceE/BasicStream.cpp | |
parent | Added stress test, fixed bugs. (diff) | |
download | ice-3242cd193fe183ff6b4e383b9db80b82848a6d02.tar.bz2 ice-3242cd193fe183ff6b4e383b9db80b82848a6d02.tar.xz ice-3242cd193fe183ff6b4e383b9db80b82848a6d02.zip |
Refactored string convertor code a bit
Diffstat (limited to 'cppe/src/IceE/BasicStream.cpp')
-rw-r--r-- | cppe/src/IceE/BasicStream.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cppe/src/IceE/BasicStream.cpp b/cppe/src/IceE/BasicStream.cpp index efd4036ceb7..e0657d2dd6e 100644 --- a/cppe/src/IceE/BasicStream.cpp +++ b/cppe/src/IceE/BasicStream.cpp @@ -1386,8 +1386,14 @@ IceInternal::BasicStream::read(vector<string>& v, bool convert) } void -IceInternal::BasicStream::writeConverted(const wstring& v) +IceInternal::BasicStream::write(const wstring& v) { + if(v.size() == 0) + { + writeSize(0); + return; + } + // // What is the size of the resulting UTF-8 encoded string? // Impossible to tell, so we guess. If we don't guess correctly, |