| 361 | } |
| 362 | |
| 363 | const char * Context::getStringVarByIndex(int index) const |
| 364 | { |
| 365 | if(index < 0 || index >= static_cast<int>(getImpl()->m_envMap.size())) |
| 366 | return ""; |
| 367 | |
| 368 | EnvMap::const_iterator iter = getImpl()->m_envMap.begin(); |
| 369 | for(int count = 0; count<index; ++count) ++iter; |
| 370 | |
| 371 | return iter->second.c_str(); |
| 372 | } |
| 373 | |
| 374 | void Context::addStringVars(const ConstContextRcPtr & ctx) noexcept |
| 375 | { |