Lines Matching refs:string
37 /// placeholder in a formatting string is:
43 /// in, not based on what the format string says. Also, note that the only
50 #include <string>
58 /// A formatter always maintains the original format string but also holds a
63 /// In general, one can format a string in the following manner:
66 /// const std::string s = (formatter("%s %s") % "foo" % 5).str();
75 /// const std::string s = f3.str();
78 /// The original format string provided by the user.
79 std::string _format;
81 /// The current "expansion" of the format string.
85 std::string _expansion;
88 std::string::size_type _last_pos;
91 std::string::size_type _placeholder_pos;
94 std::string _placeholder;
99 formatter replace(const std::string&) const;
102 formatter(const std::string&, const std::string&,
103 const std::string::size_type);
106 explicit formatter(const std::string&);
109 const std::string& str(void) const;
110 operator const std::string&(void) const;