| 498 | typename tok |
| 499 | > |
| 500 | const std::string cpp_pretty_printer_kernel_2<stack,tok>:: |
| 501 | htmlify ( |
| 502 | const std::string& str |
| 503 | ) const |
| 504 | { |
| 505 | std::string::size_type i; |
| 506 | std::string temp; |
| 507 | for (i = 0; i < str.size(); ++i) |
| 508 | { |
| 509 | if (str[i] == '<') |
| 510 | temp += "<"; |
| 511 | else if (str[i] == '>') |
| 512 | temp += ">"; |
| 513 | else if (str[i] == '&') |
| 514 | temp += "&"; |
| 515 | else |
| 516 | temp += str[i]; |
| 517 | } |
| 518 | return temp; |
| 519 | } |
| 520 | |
| 521 | // ---------------------------------------------------------------------------------------- |
| 522 |