Lines Matching refs:std
47 std::string
48 text::escape_xml(const std::string& in) in escape_xml()
50 std::ostringstream quoted; in escape_xml()
52 for (std::string::const_iterator it = in.begin(); in escape_xml()
74 quoted << "&#" << static_cast< std::string::size_type >(*it) in escape_xml()
90 std::string
91 text::quote(const std::string& text, const char quote) in quote()
93 std::ostringstream quoted; in quote()
96 std::string::size_type start_pos = 0; in quote()
97 std::string::size_type last_pos = text.find(quote); in quote()
98 while (last_pos != std::string::npos) { in quote()
121 std::vector< std::string >
122 text::refill(const std::string& input, const std::size_t target_width) in refill()
124 std::vector< std::string > output; in refill()
126 std::string::size_type start = 0; in refill()
128 std::string::size_type width; in refill()
135 const std::string::size_type pos = input.find_last_of( in refill()
137 if (pos == std::string::npos || pos < start + 1) { in refill()
139 if (width == std::string::npos) in refill()
148 INV(width != std::string::npos); in refill()
173 std::string
174 text::refill_as_string(const std::string& input, const std::size_t target_width) in refill_as_string()
187 std::string
188 text::replace_all(const std::string& input, const std::string& search, in replace_all()
189 const std::string& replacement) in replace_all()
191 std::string output; in replace_all()
193 std::string::size_type pos, lastpos = 0; in replace_all()
194 while ((pos = input.find(search, lastpos)) != std::string::npos) { in replace_all()
212 std::vector< std::string >
213 text::split(const std::string& str, const char delimiter) in split()
215 std::vector< std::string > words; in split()
217 std::string::size_type pos = str.find(delimiter); in split()
219 while (pos != std::string::npos) { in split()
221 const std::string::size_type next = str.find(delimiter, pos); in split()
240 text::to_type(const std::string& str) in to_type()
257 std::string
258 text::to_type(const std::string& str) in to_type()