Lines Matching defs:optind
37 RefWrapper<int> optind;
100 if (ctx.optind >= argc || !argv[ctx.optind])
104 cpp::string_view{argv[ctx.optind]}.substr(ctx.optpos);
118 ctx.optind.get()++;
157 // if the first character of optstring is ':'. optind must stay at the
159 if (ctx.optind + 1 >= argc || !argv[ctx.optind + 1]) {
164 ctx.optarg.get() = argv[++ctx.optind];
166 ctx.optind++;
170 ctx.optind++;
181 int optind = 1;
188 static GetoptContext ctx{&impl::optarg, &impl::optind, &impl::optopt,
193 void set_getopt_state(char **optarg, int *optind, int *optopt, unsigned *optpos,
195 ctx = {optarg, optind, optopt, optpos, opterr, errstream};