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

Function isTrue

plugins/experimental/access_control/config.cc:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include "config.h"
31
32static bool
33isTrue(const char *arg)
34{
35 return (nullptr == arg || 0 == strncasecmp("true", arg, 4) || 0 == strncasecmp("1", arg, 1) || 0 == strncasecmp("yes", arg, 3));
36}
37
38/**
39 * trim from start

Callers 2

initMethod · 0.70
parseOptionsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected