diff options
Diffstat (limited to 'include/astra/Utilities.h')
-rw-r--r-- | include/astra/Utilities.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/astra/Utilities.h b/include/astra/Utilities.h index 7ed8ecd..e830c5d 100644 --- a/include/astra/Utilities.h +++ b/include/astra/Utilities.h @@ -51,6 +51,10 @@ public: //< Throw exception on failure. _AstraExport int stringToInt(const std::string& s); +//< Parse string as int. +//< Return fallback on failure. +_AstraExport int stringToInt(const std::string& s, int fallback); + //< Parse string as float. //< Throw exception on failure. _AstraExport float stringToFloat(const std::string& s); |