summaryrefslogtreecommitdiff
path: root/cpp/src/FreezeScript/Functions.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-10-30 13:58:03 -0230
committerDwayne Boone <dwayne@zeroc.com>2008-10-30 13:58:03 -0230
commit07de2f5bc3a42b00812b1e5677548cbd45f6f203 (patch)
treec555541f713f9412f4a88995e300f22f8d23aba2 /cpp/src/FreezeScript/Functions.cpp
parentBug 3380 - windows release build broken (diff)
downloadice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.bz2
ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.xz
ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.zip
Bug 3519 - fix isalpha, isprint, ... usage
Diffstat (limited to 'cpp/src/FreezeScript/Functions.cpp')
-rw-r--r--cpp/src/FreezeScript/Functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/FreezeScript/Functions.cpp b/cpp/src/FreezeScript/Functions.cpp
index fe5a3192d77..69a7ab8ae46 100644
--- a/cpp/src/FreezeScript/Functions.cpp
+++ b/cpp/src/FreezeScript/Functions.cpp
@@ -10,6 +10,7 @@
#include <FreezeScript/Functions.h>
#include <FreezeScript/Util.h>
#include <IceUtil/UUID.h>
+#include <IceUtil/StringUtil.h>
using namespace std;
@@ -177,8 +178,7 @@ FreezeScript::invokeGlobalFunction(const Ice::CommunicatorPtr& communicator, con
{
errorReporter->error("lowercase() requires a string argument");
}
- string val = str->stringValue();
- transform(val.begin(), val.end(), val.begin(), ::tolower);
+ string val = IceUtilInternal::toLower(str->stringValue());
result = factory->createString(val, false);
return true;
}