-----------------------------------------------------------------------
| 221 | } |
| 222 | //----------------------------------------------------------------------- |
| 223 | SymbolTable::VariableMap::const_iterator SymbolTable::findVariable( const String& name )const |
| 224 | { |
| 225 | VariableMap::const_iterator it = mVariables.find( name ); |
| 226 | |
| 227 | if ( it != mVariables.end() ) |
| 228 | { |
| 229 | return it; |
| 230 | } |
| 231 | |
| 232 | for(it = mVariables.begin();it != mVariables.end(); ++it) |
| 233 | { |
| 234 | String key = it->first; |
| 235 | if(key == name) |
| 236 | { |
| 237 | return it; |
| 238 | } |
| 239 | else if(strcmp(key.c_str(), name.c_str()) == 0) |
| 240 | { |
| 241 | return it; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | return mVariables.end(); |
| 246 | } |
| 247 | //----------------------------------------------------------------------- |
| 248 | SymbolTable::VariableMap::iterator SymbolTable::findVariable( const String& name ) |
| 249 | { |