Lines Matching full:placeholder
47 /// Finds the next placeholder in a string.
51 /// \param expansion The string containing the placeholder to look for. Any
55 /// placeholder.
57 /// \return The position in the string in which the placeholder is located and
58 /// the placeholder itself. If there are no placeholders left, this returns
80 const std::string placeholder = expansion.substr(begin, end - begin + 1); in find_next_placeholder() local
82 placeholder.find('%', 1) != std::string::npos) in find_next_placeholder()
83 throw format::bad_format_error(format, "Unterminated placeholder '" + in find_next_placeholder()
84 placeholder + "'"); in find_next_placeholder()
85 return std::make_pair(begin, placeholder); in find_next_placeholder()
109 /// Constructs an std::ostringstream based on a formatting placeholder.
111 /// \param format The format placeholder; may be empty.
114 /// object in the manner specified by the format placeholder.
188 const std::pair< std::string::size_type, std::string > placeholder = in init() local
191 strip_double_percent(_expansion, _last_pos, placeholder.first); in init()
193 _oss = new_ostringstream(placeholder.second); in init()
196 _placeholder_pos = placeholder.first - no_percents.second; in init()
197 _placeholder = placeholder.second; in init()
207 /// introduced a new placeholder, which must be ignored. Think, for
266 /// \return A new formatter that has one less format placeholder.
275 /// Replaces the first formatting placeholder with a value.
279 /// \return A new formatter in which the first formatting placeholder has been
283 /// placeholders in the input string, or if the placeholder is invalid.