| 853 | } |
| 854 | |
| 855 | bool Templateiser::callKey(std::string& data, const std::string& key) { |
| 856 | std::string lowerKey; |
| 857 | tolower(key, lowerKey); |
| 858 | |
| 859 | data.clear(); |
| 860 | |
| 861 | ClassMap::iterator itr = keyClassCallbacks.find(lowerKey); |
| 862 | if (itr != keyClassCallbacks.end()) { |
| 863 | itr->second->keyCallback(data, key); |
| 864 | return true; |
| 865 | } |
| 866 | |
| 867 | KeyMap::iterator itr2 = keyFuncCallbacks.find(lowerKey); |
| 868 | if (itr2 != keyFuncCallbacks.end()) { |
| 869 | (itr2->second)(data, key); |
| 870 | return true; |
| 871 | } |
| 872 | |
| 873 | if (parent) { |
| 874 | return parent->callKey(data, key); |
| 875 | } |
| 876 | |
| 877 | return false; |
| 878 | } |
| 879 | |
| 880 | bool Templateiser::callLoop(const std::string& key, const std::string& param) { |
| 881 | std::string lowerKey; |
nothing calls this directly
no test coverage detected