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

Method add

plugins/plugin_utils/plugin_HTTP.cpp:669–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669void TemplateMetaData::add(const char* key, const char* val) {
670 if (!key || !val) {
671 return;
672 }
673
674 std::string keyName = makeupper(key);
675
676 if (!exists(key)) {
677 std::vector<std::string> t;
678 data[keyName] = t;
679 }
680 data[keyName].push_back(std::string(val));
681}
682
683Templateiser::Templateiser(Templateiser* t) {
684 parent = t;

Callers 1

getTemplateMetaDataMethod · 0.45

Calls 2

makeupperFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected