MCPcopy Create free account
hub / github.com/apache/trafficserver / index_of

Method index_of

plugins/experimental/txn_box/plugin/src/Extractor.cc:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105FeatureGroup::index_type
106FeatureGroup::index_of(swoc::TextView const &name)
107{
108 auto spot =
109 std::find_if(_expr_info.begin(), _expr_info.end(), [&name](ExprInfo const &info) { return 0 == strcasecmp(info._name, name); });
110 return spot == _expr_info.end() ? INVALID_IDX : spot - _expr_info.begin();
111}
112
113Errata
114FeatureGroup::load_expr(Config &cfg, Tracking &tracking, Tracking::Info *info, YAML::Node const &node)

Callers 4

extractMethod · 0.95
load_statusMethod · 0.45
loadMethod · 0.45
loadMethod · 0.45

Calls 3

strcasecmpFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected