Lines Matching full:spec
28 bool formatv_object_base::consumeFieldLayout(StringRef &Spec, AlignStyle &Where,
33 if (Spec.empty())
36 if (Spec.size() > 1) {
40 // If Spec[1] is a loc char, then Spec[0] is a pad char and Spec[2:...]
42 // Otherwise, if Spec[0] is a loc char, then Spec[1:...] contains the width.
43 // Otherwise, Spec[0:...] contains the width.
44 if (auto Loc = translateLocChar(Spec[1])) {
45 Pad = Spec[0];
47 Spec = Spec.drop_front(2);
48 } else if (auto Loc = translateLocChar(Spec[0])) {
50 Spec = Spec.drop_front(1);
54 bool Failed = Spec.consumeInteger(0, Align);
59 formatv_object_base::parseReplacementItem(StringRef Spec) {
60 StringRef RepString = Spec.trim("{}");
89 return ReplacementItem{Spec, Index, Align, Where, Pad, Options};
129 StringRef Spec = Fmt.slice(1, BC);
132 auto RI = parseReplacementItem(Spec);
137 // invalid replacement spec, and just continue.