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

Method toInt

visage_utils/string_utils.h:287–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286
287 int toInt() const {
288 try {
289 return std::stoi(toUtf8());
290 }
291 catch (...) {
292 return 0;
293 }
294 }
295
296 bool endsWith(const std::u32string& suffix) const {
297 return string_.size() >= suffix.size() &&

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected