MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / escape

Function escape

source/matplot/util/common.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 std::string escape(std::string_view label) {
60 std::string escaped;
61 escaped.reserve(label.size());
62
63 std::regex_replace(std::back_inserter(escaped), label.begin(), label.end(), std::regex("\""), "\\\"");
64
65 return escaped;
66 }
67
68 std::vector<double> linspace(double d1, double d2, size_t n) {
69 std::vector<double> x(n);

Callers 15

run_title_commandMethod · 0.85
run_axes_commandMethod · 0.85
run_legend_commandMethod · 0.85
run_multiplot_commandMethod · 0.85
label_stringMethod · 0.85
tick_values_stringMethod · 0.85
legend_stringMethod · 0.85
legend_stringMethod · 0.85
legend_stringMethod · 0.85
plot_stringMethod · 0.85
data_stringMethod · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected