MCPcopy Create free account
hub / github.com/Snapchat/Valdi / borderToString

Function borderToString

snap_drawing/src/snap_drawing/cpp/Utils/BorderRadius.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static std::string borderToString(Scalar value, bool isPercent) {
92 auto strValue = fmt::format("{:.1f}", value);
93 if (isPercent) {
94 strValue += "%";
95 }
96 return strValue;
97}
98
99std::string BorderRadius::toString() const {
100 return fmt::format("[{}, {}, {}, {}]",

Callers 1

toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected