Lines Matching refs:str

183 //// @param str the input string to read to search for the characters
190 escape_xml_string(const std::string& str,
193 for (std::string::const_iterator i = str.begin(); i != str.end(); ++i)
224 //// @param str the input string to read to search for the characters
230 escape_xml_string(const std::string& str)
233 escape_xml_string(str, result);
241 //// @param str the input string to read to search for the characters
248 escape_xml_comment(const std::string& str,
251 for (std::string::const_iterator i = str.begin(); i != str.end(); ++i)
266 //// @param str the input string to read to search for the characters
272 escape_xml_comment(const std::string& str)
275 escape_xml_comment(str, result);
287 /// @param str the input XML string to consider.
291 unescape_xml_string(const std::string& str,
295 while (i < str.size())
297 if (str[i] == '&')
299 if (str[i+1] == 'l'
300 && str[i+2] == 't'
301 && str[i+3] == ';')
306 else if (str[i+1] == 'g'
307 && str[i+2] == 't'
308 && str[i+3] == ';')
313 else if (str[i+1] == 'a'
314 && str[i+2] == 'm'
315 && str[i+3] == 'p'
316 && str[i+4] == ';')
321 else if (str[i+1] == 'a'
322 && str[i+2] == 'p'
323 && str[i+3] == 'o'
324 && str[i+4] == 's'
325 && str[i+5] == ';')
330 else if (str[i+1] == 'q'
331 && str[i+2] == 'u'
332 && str[i+3] == 'o'
333 && str[i+4] == 't'
334 && str[i+5] == ';')
341 escaped += str[i];
347 escaped += str[i];
361 /// @param str the input XML string to consider.
365 unescape_xml_string(const std::string& str)
368 unescape_xml_string(str, result);
375 /// @param str the input XML string to consider.
379 unescape_xml_comment(const std::string& str,
383 while (i < str.size())
385 if (str[i] == '&'
386 && str[i + 1] == '#'
387 && str[i + 2] == '4'
388 && str[i + 3] == '5'
389 && str[i + 4] == ';')
396 escaped += str[i];
405 /// @param str the input XML string to consider.
409 unescape_xml_comment(const std::string& str)
412 unescape_xml_comment(str, result);