| 34 | namespace { |
| 35 | |
| 36 | void replace_all(std::string& text, |
| 37 | const std::string_view from, |
| 38 | const std::string_view to) { |
| 39 | auto pos = std::size_t{0}; |
| 40 | while ((pos = text.find(from, pos)) != std::string::npos) { |
| 41 | text.replace(pos, from.size(), to); |
| 42 | pos += to.size(); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | std::string adapt_shader_source_for_gles(const GLuint type, |
| 47 | std::string source) { |
no test coverage detected