MCPcopy Create free account
hub / github.com/acl-dev/acl / matched

Function matched

lib_acl_cpp/samples/json/json15/json.cpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <getopt.h>
3
4static bool matched(const std::vector<std::string>& tokens, const char* name) {
5 for (std::vector<std::string>::const_iterator cit = tokens.begin();
6 cit != tokens.end(); ++cit) {
7 if (*cit == name) {
8 return true;
9 }
10 }
11
12 return false;
13}
14
15static void usage(const char* procname) {
16 printf("usage: %s -h [help[ -f json_file -n names -D [remove if matched]\r\n", procname);

Callers 1

mainFunction · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…