Lines Matching refs:Str
27 StringRef Str; member
32 Column(StringRef Str, unsigned Width) in Column()
33 : Str(Str), Width(Width), Trim(WidthTrim), Alignment(LeftAlignment) {} in Column()
55 if (Str.size() <= Width) { in render()
57 OS.indent(Width - Str.size()); in render()
58 OS << Str; in render()
61 OS << Str; in render()
62 OS.indent(Width - Str.size()); in render()
68 OS << Str; in render()
71 OS << Str.substr(0, Width); in render()
74 OS << "..." << Str.substr(Str.size() - Width + 3); in render()
77 OS << Str.substr(0, Width - 3) << "..."; in render()
82 static Column column(StringRef Str, unsigned Width) { in column() argument
83 return Column(Str, Width); in column()
87 static Column column(StringRef Str, unsigned Width, const T &Value) { in column() argument
88 return Column(Str, Width).set(Value); in column()