Lines Matching defs:optpos
39 RefWrapper<unsigned> optpos;
96 ctx.optpos.get() = 0;
104 cpp::string_view{argv[ctx.optind]}.substr(ctx.optpos);
108 ctx.optpos.get()++;
111 // If optpos is nonzero, then we are already parsing a valid flag and these
113 if (ctx.optpos == 0) {
167 ctx.optpos.get() = 0;
171 ctx.optpos.get() = 0;
186 static unsigned optpos;
189 &optpos, &impl::opterr, /*errstream=*/nullptr};
193 void set_getopt_state(char **optarg, int *optind, int *optopt, unsigned *optpos,
195 ctx = {optarg, optind, optopt, optpos, opterr, errstream};