Lines Matching refs:FmtReplacement
71 std::pair<FmtReplacement, StringRef>
77 return {FmtReplacement{fmt}, StringRef()}; in splitFmtSegment()
82 return {FmtReplacement{fmt.substr(0, begin)}, fmt.substr(begin)}; in splitFmtSegment()
89 return {FmtReplacement{fmt}, StringRef()}; in splitFmtSegment()
94 return {FmtReplacement{fmt.substr(0, 1)}, fmt.substr(2)}; in splitFmtSegment()
110 return {FmtReplacement{fmt, index}, StringRef()}; in splitFmtSegment()
112 return {FmtReplacement{fmt.substr(0, end), index}, fmt.substr(end)}; in splitFmtSegment()
119 return {FmtReplacement{fmt, placeholder}, StringRef()}; in splitFmtSegment()
121 return {FmtReplacement{fmt.substr(0, end), placeholder}, fmt.substr(end)}; in splitFmtSegment()
124 std::vector<FmtReplacement> FmtObjectBase::parseFormatString(StringRef fmt) { in parseFormatString()
125 std::vector<FmtReplacement> replacements; in parseFormatString()
126 FmtReplacement repl; in parseFormatString()
129 if (repl.type != FmtReplacement::Type::Empty) in parseFormatString()
137 if (repl.type == FmtReplacement::Type::Empty) in format()
140 if (repl.type == FmtReplacement::Type::Literal) { in format()
145 if (repl.type == FmtReplacement::Type::SpecialPH) { in format()
167 assert(repl.type == FmtReplacement::Type::PositionalPH); in format()