| 575 | typename tok |
| 576 | > |
| 577 | const std::string cpp_pretty_printer_kernel_1<stack,tok>:: |
| 578 | htmlify ( |
| 579 | const std::string& str |
| 580 | ) const |
| 581 | { |
| 582 | std::string::size_type i; |
| 583 | std::string temp; |
| 584 | for (i = 0; i < str.size(); ++i) |
| 585 | { |
| 586 | if (str[i] == '<') |
| 587 | temp += "<"; |
| 588 | else if (str[i] == '>') |
| 589 | temp += ">"; |
| 590 | else if (str[i] == '&') |
| 591 | temp += "&"; |
| 592 | else |
| 593 | temp += str[i]; |
| 594 | } |
| 595 | return temp; |
| 596 | } |
| 597 | |
| 598 | // ---------------------------------------------------------------------------------------- |
| 599 |