MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / callKey

Method callKey

plugins/plugin_utils/plugin_HTTP.cpp:855–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855bool 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
880bool Templateiser::callLoop(const std::string& key, const std::string& param) {
881 std::string lowerKey;

Callers

nothing calls this directly

Calls 5

tolowerFunction · 0.85
clearMethod · 0.45
findMethod · 0.45
endMethod · 0.45
keyCallbackMethod · 0.45

Tested by

no test coverage detected