[Gridflow-cvs] [svn] commit: r5034 - /trunk/src/formats.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Feb 21 09:45:44 EST 2010


Author: matju
Date: Sun Feb 21 09:45:42 2010
New Revision: 5034

Log:
suffix lookup lowercased (to become case-insensitive)

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Sun Feb 21 09:45:42 2010
@@ -24,6 +24,7 @@
 #include "gridflow.hxx.fcs"
 #include <string>
 #include <map>
+#include <algorithm>
 #include <errno.h>
 #define L _L_
 
@@ -78,6 +79,7 @@
 	if (!t) outlet_symbol(outlets[2],gensym(s));
 	else {
 		*t = 0;
+		for (char *u=t+1; *u; u++) *u=tolower(*u);
 		outlet_symbol(outlets[1],gensym(t+1));
 		std::map<std::string,std::string>::iterator u = suffix_table.find(std::string(t+1));
 		if (u==suffix_table.end()) outlet_bang(outlets[0]);



More information about the Gridflow-cvs mailing list