* Function : select_next_operator **************************************************************************/
| 36 | * Function : select_next_operator |
| 37 | **************************************************************************/ |
| 38 | void select_next_operator(agent* thisAgent, const char* operator_id) |
| 39 | { |
| 40 | select_init(thisAgent); |
| 41 | std::string& op = thisAgent->select->select_operator; |
| 42 | |
| 43 | thisAgent->select->select_enabled = true; |
| 44 | op.assign(operator_id); |
| 45 | |
| 46 | assert(!op.empty()); |
| 47 | |
| 48 | // lazy users may use a lower-case letter |
| 49 | std::string::iterator iter = op.begin(); |
| 50 | *iter = static_cast< char >(toupper(*iter)); |
| 51 | } |
| 52 | |
| 53 | /*************************************************************************** |
| 54 | * Function : select_get_operator |