Lines Matching defs:expansion
51 /// \param expansion The string containing the placeholder to look for. Any
66 const std::string& expansion,
69 begin = expansion.find('%', begin);
70 while (begin != std::string::npos && expansion[begin + 1] == '%')
71 begin = expansion.find('%', begin + 2);
73 return std::make_pair(expansion.length(), "");
74 if (begin == expansion.length() - 1)
78 while (end < expansion.length() && expansion[end] != 's')
80 const std::string placeholder = expansion.substr(begin, end - begin + 1);
81 if (end == expansion.length() ||
204 /// \param expansion The format string with any replacements performed so far.
210 const std::string& expansion,
213 _expansion(expansion),
288 const std::string expansion = _expansion.substr(0, _placeholder_pos)
290 return formatter(_format, expansion, _placeholder_pos + arg.length());