Subversion Repositories tpanel

Rev

Rev 97 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 97 Rev 101
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2020, 2021 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2020 to 2022 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 194... Line 194...
194
CMD_DEFINATIONS& findCmdDefines(const string& cmd)
194
CMD_DEFINATIONS& findCmdDefines(const string& cmd)
195
{
195
{
196
    DECL_TRACER("findCmdDefines(const string& cmd)");
196
    DECL_TRACER("findCmdDefines(const string& cmd)");
197
 
197
 
198
    int i = 0;
198
    int i = 0;
-
 
199
    string uCmd = cmd;
-
 
200
    uCmd = toUpper(uCmd);
199
 
201
 
200
    while (cmdDefinations[i].cmd.length() > 0)
202
    while (cmdDefinations[i].cmd.length() > 0)
201
    {
203
    {
202
        if (cmdDefinations[i].cmd.compare(cmd) == 0)
204
        if (cmdDefinations[i].cmd.compare(uCmd) == 0)
203
            return cmdDefinations[i];
205
            return cmdDefinations[i];
204
 
206
 
205
        i++;
207
        i++;
206
    }
208
    }
207
 
209