Home | History | Annotate | Download | only in src

Lines Matching refs:buffer

198   StringStream buffer(&string_allocator);
201 buffer.Add("%s", (*flag->bool_variable() ? "true" : "false"));
204 buffer.Add("%d", *flag->int_variable());
207 buffer.Add("%f", FmtElm(*flag->float_variable()));
211 buffer.Add("%s", str ? str : "NULL");
217 buffer.Add("%s", args[0]);
219 buffer.Add(" %s", args[i]);
225 return buffer.ToCString();
242 StringStream buffer(&string_allocator);
244 buffer.Add("--%s", f->name());
246 buffer.Add("--no%s", f->name());
248 args->Add(buffer.ToCString().Detach());
256 StringStream buffer(&string_allocator);
257 buffer.Add("--%s", args_flag->name());
258 args->Add(buffer.ToCString().Detach());
270 // if the arg started with "-no" or "--no". The buffer may be used to NUL-
273 char* buffer,
307 CHECK(n < static_cast<size_t>(buffer_size)); // buffer is too small
308 memcpy(buffer, *name, n);
309 buffer[n] = '\0';
310 *name = buffer;
352 char buffer[1*KB];
356 SplitArgument(arg, buffer, sizeof buffer, &name, &value, &is_bool);