[commit] r2570 - trunk/GME/ObjectInspector
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Nov 17 12:49:11 CST 2014
Author: ksmyth
Date: Mon Nov 17 12:49:10 2014
New Revision: 2570
Log:
ObjectInspector: allow non-ASCII
Modified:
trunk/GME/ObjectInspector/ItemData.cpp
trunk/GME/ObjectInspector/ItemData.h
Modified: trunk/GME/ObjectInspector/ItemData.cpp
==============================================================================
--- trunk/GME/ObjectInspector/ItemData.cpp Mon Nov 17 12:49:00 2014 (r2569)
+++ trunk/GME/ObjectInspector/ItemData.cpp Mon Nov 17 12:49:10 2014 (r2570)
@@ -135,21 +135,6 @@
*this=srcItemData;
}
-bool CItemData::IsAsciiString()
-{
- INT_PTR strCnt = stringVal.GetCount();
- for(INT_PTR strIdx = 0; strIdx < strCnt; strIdx++) {
- const CString &str = stringVal[strIdx];
- int strLen = str.GetLength();
- for (int chIdx = 0; chIdx < strLen; chIdx++) {
- if (unsigned(str.GetAt(chIdx)) > 127) {
- return false;
- }
- }
- }
- return true;
-}
-
bool CItemData::Validate()
{
bool retVal=false;
@@ -161,7 +146,7 @@
}break;
case ITEMDATA_STRING:
{
- retVal=IsAsciiString();
+ retVal=true;
}break;
case ITEMDATA_FIXED_LIST:
{
Modified: trunk/GME/ObjectInspector/ItemData.h
==============================================================================
--- trunk/GME/ObjectInspector/ItemData.h Mon Nov 17 12:49:00 2014 (r2569)
+++ trunk/GME/ObjectInspector/ItemData.h Mon Nov 17 12:49:10 2014 (r2570)
@@ -42,7 +42,6 @@
void toString();
bool toString(CString &)const;
bool Validate();
- bool IsAsciiString();
CItemData();
virtual ~CItemData();
More information about the gme-commit
mailing list