summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/IdentityUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/IdentityUtil.cpp')
-rw-r--r--cpp/src/Ice/IdentityUtil.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Ice/IdentityUtil.cpp b/cpp/src/Ice/IdentityUtil.cpp
index a27fb20a90f..9acace97782 100644
--- a/cpp/src/Ice/IdentityUtil.cpp
+++ b/cpp/src/Ice/IdentityUtil.cpp
@@ -13,8 +13,8 @@
// **********************************************************************
#include <Ice/IdentityUtil.h>
-#include <Ice/StringUtil.h>
#include <Ice/LocalException.h>
+#include <IceUtil/StringUtil.h>
using namespace std;
using namespace Ice;
@@ -58,7 +58,7 @@ Ice::stringToIdentity(const string& s)
if(slash == string::npos)
{
- if(!decodeString(s, 0, s.size(), ident.name))
+ if(!IceUtil::unescapeString(s, 0, s.size(), ident.name))
{
IdentityParseException ex(__FILE__, __LINE__);
ex.str = s;
@@ -67,7 +67,7 @@ Ice::stringToIdentity(const string& s)
}
else
{
- if(!decodeString(s, 0, slash, ident.category))
+ if(!IceUtil::unescapeString(s, 0, slash, ident.category))
{
IdentityParseException ex(__FILE__, __LINE__);
ex.str = s;
@@ -75,7 +75,7 @@ Ice::stringToIdentity(const string& s)
}
if(slash + 1 < s.size())
{
- if(!decodeString(s, slash + 1, s.size(), ident.name))
+ if(!IceUtil::unescapeString(s, slash + 1, s.size(), ident.name))
{
IdentityParseException ex(__FILE__, __LINE__);
ex.str = s;
@@ -92,10 +92,10 @@ Ice::identityToString(const Identity& ident)
{
if(ident.category.empty())
{
- return encodeString(ident.name, "/");
+ return IceUtil::escapeString(ident.name, "/");
}
else
{
- return encodeString(ident.category, "/") + '/' + encodeString(ident.name, "/");
+ return IceUtil::escapeString(ident.category, "/") + '/' + IceUtil::escapeString(ident.name, "/");
}
}