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

Method get_first_int

include/proxy/hdrs/HdrUtils.h:174–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174inline bool
175HdrCsvIter::get_first_int(MIMEField *m, int &result)
176{
177 auto val = this->get_first(m);
178
179 if (val) {
180 TextView parsed;
181 int n = swoc::svtoi(val, &parsed);
182 if (parsed) {
183 result = n;
184 return true;
185 }
186 }
187 return false;
188}
189
190inline bool
191HdrCsvIter::get_next_int(int &result)

Callers 1

delete_warning_valueMethod · 0.80

Calls 2

get_firstMethod · 0.95
svtoiFunction · 0.85

Tested by

no test coverage detected