Lines Matching refs:Fmt

93 formatv_object_base::splitLiteralAndReplacement(StringRef Fmt) {  in splitLiteralAndReplacement()  argument
94 while (!Fmt.empty()) { in splitLiteralAndReplacement()
96 if (Fmt.front() != '{') { in splitLiteralAndReplacement()
97 std::size_t BO = Fmt.find_first_of('{'); in splitLiteralAndReplacement()
98 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO)); in splitLiteralAndReplacement()
101 StringRef Braces = Fmt.take_while([](char C) { return C == '{'; }); in splitLiteralAndReplacement()
106 StringRef Middle = Fmt.take_front(NumEscapedBraces); in splitLiteralAndReplacement()
107 StringRef Right = Fmt.drop_front(NumEscapedBraces * 2); in splitLiteralAndReplacement()
113 std::size_t BC = Fmt.find_first_of('}'); in splitLiteralAndReplacement()
118 return std::make_pair(ReplacementItem{Fmt}, StringRef()); in splitLiteralAndReplacement()
124 std::size_t BO2 = Fmt.find_first_of('{', 1); in splitLiteralAndReplacement()
126 return std::make_pair(ReplacementItem{Fmt.substr(0, BO2)}, in splitLiteralAndReplacement()
127 Fmt.substr(BO2)); in splitLiteralAndReplacement()
129 StringRef Spec = Fmt.slice(1, BC); in splitLiteralAndReplacement()
130 StringRef Right = Fmt.substr(BC + 1); in splitLiteralAndReplacement()
138 Fmt = Fmt.drop_front(BC + 1); in splitLiteralAndReplacement()
140 return std::make_pair(ReplacementItem{Fmt}, StringRef()); in splitLiteralAndReplacement()
144 formatv_object_base::parseFormatString(StringRef Fmt) { in parseFormatString() argument
147 while (!Fmt.empty()) { in parseFormatString()
148 std::tie(I, Fmt) = splitLiteralAndReplacement(Fmt); in parseFormatString()