summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/IdentityUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-04-09 16:38:00 +0000
committerMarc Laukien <marc@zeroc.com>2004-04-09 16:38:00 +0000
commit09c33fa2189c2b538d6618d4bd78d6e6e32b5c3a (patch)
tree6220806dfb1a26ca3f54dd13f810202f99d28156 /cpp/src/Ice/IdentityUtil.cpp
parentadd opContext test (diff)
downloadice-09c33fa2189c2b538d6618d4bd78d6e6e32b5c3a.tar.bz2
ice-09c33fa2189c2b538d6618d4bd78d6e6e32b5c3a.tar.xz
ice-09c33fa2189c2b538d6618d4bd78d6e6e32b5c3a.zip
moved StringUtil to IceUtil, fixed names
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, "/");
}
}