Lines Matching defs:Spec
28 static bool consumeFieldLayout(StringRef &Spec, AlignStyle &Where,
33 if (Spec.empty())
36 if (Spec.size() > 1) {
39 // If Spec[1] is a loc char, then Spec[0] is a pad char and Spec[2:...]
41 // Otherwise, if Spec[0] is a loc char, then Spec[1:...] contains the width.
42 // Otherwise, Spec[0:...] contains the width.
43 if (auto Loc = translateLocChar(Spec[1])) {
44 Pad = Spec[0];
46 Spec = Spec.drop_front(2);
47 } else if (auto Loc = translateLocChar(Spec[0])) {
49 Spec = Spec.drop_front(1);
53 bool Failed = Spec.consumeInteger(0, Align);
57 static std::optional<ReplacementItem> parseReplacementItem(StringRef Spec) {
58 StringRef RepString = Spec.trim("{}");
89 return ReplacementItem(Spec, Index, Align, Where, Pad, Options);
129 StringRef Spec = Fmt.slice(1, BC);
132 return {parseReplacementItem(Spec), Right};