Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-24 16:40:06 +0000
committerStijn Buys <ingar@osirion.org>2008-05-24 16:40:06 +0000
commit274fcfe8d3fc5b54b345d79fab6dd4bbdb544892 (patch)
tree6c452ce4c5d411334024e49d67182c6402e1a0d7 /src/core/commandbuffer.cc
parent191a300e67edba6ae6a12a37ceb03b4f12f3ba08 (diff)
aux::lowercase, aux::to_lowercase
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index 40517e1..6c4dbca 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -9,6 +9,7 @@
#include <sstream>
#include <list>
+#include "auxiliary/functions.h"
#include "sys/sys.h"
#include "filesystem/filesystem.h"
#include "core/application.h"
@@ -57,6 +58,8 @@ void func_set(std::string const &args)
if (!(argstream >> varname))
return;
+ aux::to_lowercase(varname);
+
std::string value;
if (!(argstream >> value)) {
return;
@@ -136,7 +139,8 @@ void CommandBuffer::exec(std::string const &cmdline)
if (!(cmdstream >> command))
return;
-
+
+ aux::to_lowercase(command);
//con_debug << "Executing '" << cmdline << "'\n";
// is it a function
@@ -207,7 +211,8 @@ void CommandBuffer::complete(std::string &input, size_t &pos)
std::string partial = input.substr(0, pos);
if (!partial.size())
return;
-
+ aux::to_lowercase(partial);
+
// search function registry for matches
std::map<std::string, Func *>::iterator f;
for (f = Func::registry.begin(); f != Func::registry.end(); f++) {