diff options
author | Sven Gothel <[email protected]> | 2022-06-25 06:13:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-06-25 06:13:25 +0200 |
commit | 2dbd08845f0c2bfb9d953298c7002e1e62533b51 (patch) | |
tree | a2921e74087d1dd63fc92c0b6b81d6b679ad6326 /include | |
parent | 4ca3a2020d32ddfe1cca6d4924cfcc9d66402a68 (diff) |
Expose jau::to_integer() for general use
Diffstat (limited to 'include')
-rw-r--r-- | include/jau/string_util.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jau/string_util.hpp b/include/jau/string_util.hpp index 8a6a37f..e28a10c 100644 --- a/include/jau/string_util.hpp +++ b/include/jau/string_util.hpp @@ -305,6 +305,9 @@ namespace jau { return res; } + bool to_integer(long long & result, const std::string& str, const char limiter='\0', const char *limiter_pos=nullptr); + bool to_integer(long long & result, const char * str, size_t str_len, const char limiter='\0', const char *limiter_pos=nullptr); + /**@}*/ } // namespace jau |