mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
19 lines
383 B
C++
19 lines
383 B
C++
|
|
||
|
#include "extensions.hpp"
|
||
|
|
||
|
namespace Compiler
|
||
|
{
|
||
|
|
||
|
Extensions::Extensions() : mNextKeywordIndex (-1) {}
|
||
|
|
||
|
int Extensions::searchKeyword (const std::string& keyword) const
|
||
|
{
|
||
|
std::map<std::string, int>::const_iterator iter = mKeywords.find (keyword);
|
||
|
|
||
|
if (iter==mKeywords.end())
|
||
|
return 0;
|
||
|
|
||
|
return iter->second;
|
||
|
}
|
||
|
}
|