------------------------------------------------------------------------------
| 878 | |
| 879 | //------------------------------------------------------------------------------ |
| 880 | void vtkMatplotlibMathTextUtilities::FindAndReplaceInString( |
| 881 | std::string& str, const std::string& strToFind, const std::string& replacementStr) |
| 882 | { |
| 883 | size_t start_pos = 0; |
| 884 | while ((start_pos = str.find(strToFind, start_pos)) != std::string::npos) |
| 885 | { |
| 886 | str.replace(start_pos, strToFind.length(), replacementStr); |
| 887 | start_pos += replacementStr.length(); |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | //------------------------------------------------------------------------------ |
| 892 | struct TextColors |
no test coverage detected