MCPcopy Create free account
hub / github.com/arrayfire/forge / toString

Function toString

src/backend/opengl/common.cpp:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273#endif
274
275std::string toString(const float pVal, const std::string pFormat)
276{
277 std::unique_ptr<char> label(new char[std::to_string(pVal).length()+1]);
278
279 sprintf(label.get(), pFormat.c_str(), pVal);
280
281 return std::string(label.get());
282}
283
284GLuint screenQuadVBO(const int pWindowId)
285{

Callers 2

generateChartDataMethod · 0.85
generateTickLabelsMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected