MCPcopy Create free account
hub / github.com/VitalAudio/visage / toFloat

Method toFloat

visage_utils/string_utils.h:278–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 String removeEmojiVariations() const;
277
278 float toFloat() const {
279 try {
280 return std::stof(toUtf8());
281 }
282 catch (...) {
283 return 0.0f;
284 }
285 }
286
287 int toInt() const {
288 try {

Callers 3

ColorPickerMethod · 0.80
setTextEditorBoundsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected