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