mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
18 lines
383 B
C++
18 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;
|
|
}
|
|
}
|