[mapguide-commits] r9871 - in sandbox/adsk/trunk/Common: CoordinateSystem Foundation/Data Foundation/System
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Sep 17 00:23:23 PDT 2021
Author: christinebao
Date: 2021-09-17 00:23:22 -0700 (Fri, 17 Sep 2021)
New Revision: 9871
Modified:
sandbox/adsk/trunk/Common/CoordinateSystem/CoordSysUtil.h
sandbox/adsk/trunk/Common/Foundation/Data/NamedCollection.cpp
sandbox/adsk/trunk/Common/Foundation/System/Util.cpp
Log:
Fix towlower / toupper to towlower / towupper for wchar_t
Modified: sandbox/adsk/trunk/Common/CoordinateSystem/CoordSysUtil.h
===================================================================
--- sandbox/adsk/trunk/Common/CoordinateSystem/CoordSysUtil.h 2021-09-15 06:47:32 UTC (rev 9870)
+++ sandbox/adsk/trunk/Common/CoordinateSystem/CoordSysUtil.h 2021-09-17 07:23:22 UTC (rev 9871)
@@ -1,19 +1,14 @@
//
-// Copyright (C) 2004-2011 by Autodesk, Inc.
+// (C) Copyright 2021 by Autodesk, Inc.
//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of version 2.1 of the GNU Lesser
-// General Public License as published by the Free Software Foundation.
+// The information contained herein is confidential, proprietary
+// to Autodesk, Inc., and considered a trade secret as defined
+// in section 499C of the penal code of the State of California.
+// Use of this information by anyone other than authorized
+// employees of Autodesk, Inc. is granted only under a written
+// non-disclosure agreement, expressly prescribing the scope
+// and manner of such use.
//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-//
#ifndef _CCOORDINATESYSTEMUTIL_H_
#define _CCOORDINATESYSTEMUTIL_H_
@@ -183,7 +178,7 @@
inline STRING ToLower( CREFSTRING source )
{
STRING low = source;
- std::transform(low.begin(), low.end(), low.begin(), ::tolower);
+ std::transform(low.begin(), low.end(), low.begin(), ::towlower);
return low;
}
@@ -190,7 +185,7 @@
inline STRING ToUpper( CREFSTRING source )
{
STRING up = source;
- std::transform(up.begin(), up.end(), up.begin(), ::toupper);
+ std::transform(up.begin(), up.end(), up.begin(), ::towupper);
return up;
}
Modified: sandbox/adsk/trunk/Common/Foundation/Data/NamedCollection.cpp
===================================================================
--- sandbox/adsk/trunk/Common/Foundation/Data/NamedCollection.cpp 2021-09-15 06:47:32 UTC (rev 9870)
+++ sandbox/adsk/trunk/Common/Foundation/Data/NamedCollection.cpp 2021-09-17 07:23:22 UTC (rev 9871)
@@ -1,19 +1,14 @@
//
-// Copyright (C) 2004-2011 by Autodesk, Inc.
+// (C) Copyright 2021 by Autodesk, Inc.
//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of version 2.1 of the GNU Lesser
-// General Public License as published by the Free Software Foundation.
+// The information contained herein is confidential, proprietary
+// to Autodesk, Inc., and considered a trade secret as defined
+// in section 499C of the penal code of the State of California.
+// Use of this information by anyone other than authorized
+// employees of Autodesk, Inc. is granted only under a written
+// non-disclosure agreement, expressly prescribing the scope
+// and manner of such use.
//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-//
#include "Foundation.h"
#include <map>
@@ -585,7 +580,7 @@
//////////////////////////////////////////////////////////////////
STRING MgNamedCollection::Lower(STRING str) const
{
- transform(str.begin(), str.end(), str.begin(), ::tolower);
+ transform(str.begin(), str.end(), str.begin(), ::towlower);
return str;
}
Modified: sandbox/adsk/trunk/Common/Foundation/System/Util.cpp
===================================================================
--- sandbox/adsk/trunk/Common/Foundation/System/Util.cpp 2021-09-15 06:47:32 UTC (rev 9870)
+++ sandbox/adsk/trunk/Common/Foundation/System/Util.cpp 2021-09-17 07:23:22 UTC (rev 9871)
@@ -1,19 +1,14 @@
//
-// Copyright (C) 2004-2011 by Autodesk, Inc.
+// (C) Copyright 2021 by Autodesk, Inc.
//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of version 2.1 of the GNU Lesser
-// General Public License as published by the Free Software Foundation.
+// The information contained herein is confidential, proprietary
+// to Autodesk, Inc., and considered a trade secret as defined
+// in section 499C of the penal code of the State of California.
+// Use of this information by anyone other than authorized
+// employees of Autodesk, Inc. is granted only under a written
+// non-disclosure agreement, expressly prescribing the scope
+// and manner of such use.
//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-//
#include "Foundation.h"
#include "UnicodeString.h"
@@ -655,7 +650,7 @@
bool MgUtil::StringToBoolean(CREFSTRING str)
{
STRING tmp = Trim(str, L" \t\r\n");
- std::transform(tmp.begin(), tmp.end(), tmp.begin(), ::tolower);
+ std::transform(tmp.begin(), tmp.end(), tmp.begin(), ::towlower);
return (tmp.compare(L"true") == 0 ? true : false);
}
@@ -1245,7 +1240,7 @@
STRING MgUtil::ToLower(CREFSTRING source)
{
STRING low = source;
- std::transform(low.begin(), low.end(), low.begin(), ::tolower);
+ std::transform(low.begin(), low.end(), low.begin(), ::towlower);
return low;
}
@@ -1252,7 +1247,7 @@
STRING MgUtil::ToUpper(CREFSTRING source)
{
STRING up = source;
- std::transform(up.begin(), up.end(), up.begin(), ::toupper);
+ std::transform(up.begin(), up.end(), up.begin(), ::towupper);
return up;
}
More information about the mapguide-commits
mailing list