diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 15:59:35 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 15:59:35 +0000 |
commit | 77ce2751912eef6e7d8af75959358de220e7eb80 (patch) | |
tree | 88bf0da7b6719df5bd53c9738ce60acb80f844dc /cpp/src/Ice/Reference.cpp | |
parent | Cleaned up slice files, fixed IceGrid node with collocated registry warning (diff) | |
download | ice-77ce2751912eef6e7d8af75959358de220e7eb80.tar.bz2 ice-77ce2751912eef6e7d8af75959358de220e7eb80.tar.xz ice-77ce2751912eef6e7d8af75959358de220e7eb80.zip |
Added back static identity string functions
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r-- | cpp/src/Ice/Reference.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp index 8b4e3f827c3..8858f9b056a 100644 --- a/cpp/src/Ice/Reference.cpp +++ b/cpp/src/Ice/Reference.cpp @@ -188,7 +188,7 @@ IceInternal::Reference::toString() const // the identity string in quotes. // string id = _instance->identityToString(_identity); - if(id.find_first_of(" \t\n\r:@") != string::npos) + if(id.find_first_of(" :@") != string::npos) { s << '"' << id << '"'; } @@ -212,10 +212,10 @@ IceInternal::Reference::toString() const UTF8BufferI buffer; Byte* last = _instance->initializationData().stringConverter->toUTF8(fs.data(), fs.data() + fs.size(), buffer); - fs = string(buffer.getBuffer(), last); + fs = string(reinterpret_cast<const char*>(buffer.getBuffer()), last - buffer.getBuffer()); } fs = IceUtil::escapeString(fs, ""); - if(fs.find_first_of(" \t\n\r:@") != string::npos) + if(fs.find_first_of(" :@") != string::npos) { s << '"' << fs << '"'; } @@ -1439,10 +1439,10 @@ IceInternal::IndirectReference::toString() const { UTF8BufferI buffer; Byte* last = getInstance()->initializationData().stringConverter->toUTF8(a.data(), a.data() + a.size(), buffer); - a = string(buffer.getBuffer(), last); + a = string(reinterpret_cast<const char*>(buffer.getBuffer()), last - buffer.getBuffer()); } a = IceUtil::escapeString(a, ""); - if(a.find_first_of(" \t\n\r") != string::npos) + if(a.find_first_of(" ") != string::npos) { result.append("\""); result.append(a); |