MCPcopy Create free account
hub / github.com/boostorg/json / parse_option

Function parse_option

bench/bench-conv.cpp:69–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67std::string s_num_mode = "i";
68
69bool
70parse_option(char const* s)
71{
72 if(*s == 0)
73 return false;
74
75 char opt = *s++;
76
77 if(*s++ != ':')
78 return false;
79
80 switch(opt)
81 {
82 case 't':
83 s_tests = s;
84 break;
85
86 case 'i':
87 s_impls = s;
88 break;
89
90 case 'n':
91 {
92 int k = std::atoi(s);
93
94 if(k > 0)
95 s_trials = k;
96 else
97 return false;
98 }
99 break;
100
101 case 'b':
102 s_branch = s;
103 break;
104
105 case 'a':
106 s_alloc = s;
107 break;
108
109 case 'm':
110 s_num_mode = s;
111 break;
112 }
113
114 return true;
115}
116
117struct file_item
118{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected