Lines Matching refs:strm
293 StreamString strm;
338 Stream &strm,
347 if ((len + strm.GetIndentLevel()) < output_max_columns)
350 strm.Indent (text);
351 strm.EOL();
357 int text_width = output_max_columns - strm.GetIndentLevel() - 1;
382 strm.EOL();
383 strm.Indent();
386 strm.Write(text + start, sub_len);
389 strm.EOL();
428 Stream &strm)
436 strm.PutCString(header);
439 strm.PutChar('[');
442 strm.Printf ("-%c", opt_def.short_option);
444 strm.Printf ("--%s", opt_def.long_option);
450 strm.Printf (" <%s>", CommandObject::GetArgumentName (opt_def.argument_type));
454 strm.Printf ("%s[<%s>]",
460 strm.PutChar(']');
462 strm.PutCString(footer);
469 Stream &strm,
476 const uint32_t save_indent_level = strm.GetIndentLevel();
489 strm.PutCString ("\nCommand Options Usage:\n");
491 strm.IndentMore(2);
511 strm.Printf ("\n");
512 strm.Indent (name);
542 strm.PutCString(" -");
552 strm << (char)*options_pos;
573 strm.PutCString(" [-");
583 strm << (char)*options_pos;
585 strm.PutChar(']');
595 PrintOption (opt_defs[i], eDisplayBestOption, " ", NULL, true, strm);
608 PrintOption (opt_defs[i], eDisplayBestOption, " ", NULL, true, strm);
615 strm.Printf(" --");
617 strm.Printf (" %s", args_str.GetData());
625 strm.PutChar('\n');
626 strm.Indent(name);
627 strm.Printf(" %s", arguments_str.GetData());
630 strm.Printf ("\n\n");
640 strm.IndentMore (5);
660 strm.EOL();
669 strm.Indent ();
672 PrintOption (opt_defs[i], eDisplayShortOption, NULL, NULL, false, strm);
673 PrintOption (opt_defs[i], eDisplayLongOption, " ( ", " )", false, strm);
678 PrintOption (opt_defs[i], eDisplayLongOption, NULL, NULL, false, strm);
680 strm.EOL();
682 strm.IndentMore (5);
685 OutputFormattedUsageText (strm,
690 strm.Indent ();
691 strm.Printf("Values: ");
695 strm.Printf("%s", opt_defs[i].enum_values[k].string_value);
697 strm.Printf(" | %s", opt_defs[i].enum_values[k].string_value);
699 strm.EOL();
701 strm.IndentLess (5);
705 strm.SetIndentLevel (save_indent_level);