Lines Matching refs:Fmt
93 formatv_object_base::splitLiteralAndReplacement(StringRef Fmt) { in splitLiteralAndReplacement() argument
95 while (From < Fmt.size() && From != StringRef::npos) { in splitLiteralAndReplacement()
96 std::size_t BO = Fmt.find_first_of('{', From); in splitLiteralAndReplacement()
99 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO)); in splitLiteralAndReplacement()
102 Fmt.drop_front(BO).take_while([](char C) { return C == '{'; }); in splitLiteralAndReplacement()
107 StringRef Middle = Fmt.substr(BO, NumEscapedBraces); in splitLiteralAndReplacement()
108 StringRef Right = Fmt.drop_front(BO + NumEscapedBraces * 2); in splitLiteralAndReplacement()
114 std::size_t BC = Fmt.find_first_of('}', BO); in splitLiteralAndReplacement()
119 return std::make_pair(ReplacementItem{Fmt}, StringRef()); in splitLiteralAndReplacement()
125 std::size_t BO2 = Fmt.find_first_of('{', BO + 1); in splitLiteralAndReplacement()
127 return std::make_pair(ReplacementItem{Fmt.substr(0, BO2)}, in splitLiteralAndReplacement()
128 Fmt.substr(BO2)); in splitLiteralAndReplacement()
130 StringRef Spec = Fmt.slice(BO + 1, BC); in splitLiteralAndReplacement()
131 StringRef Right = Fmt.substr(BC + 1); in splitLiteralAndReplacement()
141 return std::make_pair(ReplacementItem{Fmt}, StringRef()); in splitLiteralAndReplacement()
145 formatv_object_base::parseFormatString(StringRef Fmt) { in parseFormatString() argument
148 while (!Fmt.empty()) { in parseFormatString()
149 std::tie(I, Fmt) = splitLiteralAndReplacement(Fmt); in parseFormatString()