[Avida-cvs] [avida-svn] r762 - in development/source: analyze tools
brysonda@myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Tue Jun 20 17:17:43 PDT 2006
Author: brysonda
Date: 2006-06-20 20:17:43 -0400 (Tue, 20 Jun 2006)
New Revision: 762
Modified:
development/source/analyze/cAnalyze.cc
development/source/tools/cString.cc
development/source/tools/cString.h
Log:
Restore case insensitivity to classic analyze commands. Looking at the code, this was supposed to have been the case, but the call to ToUpper() was left out.
Actions are still (and most likely will remain) case sensitive.
Modified: development/source/analyze/cAnalyze.cc
===================================================================
--- development/source/analyze/cAnalyze.cc 2006-06-20 23:33:04 UTC (rev 761)
+++ development/source/analyze/cAnalyze.cc 2006-06-21 00:17:43 UTC (rev 762)
@@ -7766,6 +7766,7 @@
SetupCommandDefLibrary();
cString uppername(name);
+ uppername.ToUpper();
tListIterator<cAnalyzeCommandDefBase> lib_it(command_lib);
while (lib_it.Next() != (void *) NULL) {
if (lib_it.Get()->GetName() == uppername) break;
Modified: development/source/tools/cString.cc
===================================================================
--- development/source/tools/cString.cc 2006-06-20 23:33:04 UTC (rev 761)
+++ development/source/tools/cString.cc 2006-06-21 00:17:43 UTC (rev 762)
@@ -432,7 +432,7 @@
}
-cString & cString::ToUpper()
+cString& cString::ToUpper()
{
for (int pos = 0; pos < GetSize(); pos++) {
if( (*this)[pos] >= 'a' && (*this)[pos] <= 'z' )
Modified: development/source/tools/cString.h
===================================================================
--- development/source/tools/cString.h 2006-06-20 23:33:04 UTC (rev 761)
+++ development/source/tools/cString.h 2006-06-21 00:17:43 UTC (rev 762)
@@ -263,12 +263,12 @@
/**
* Convert the string to lowercase.
**/
- cString & ToLower();
+ cString& ToLower();
/**
* Convert the string to uppercase.
**/
- cString & ToUpper();
+ cString& ToUpper();
/**
* Replace all blocks of whitespace with a single space (' ').
More information about the Avida-cvs
mailing list