diff options
author | Brad King <brad.king@kitware.com> | 2022-09-20 15:12:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-20 16:00:08 (GMT) |
commit | 31f158e4c881bea2b526102b2024b0fb34ade42d (patch) | |
tree | 5013888d1c3c2dd765c641946e82fc8468c6485c /Source/cmStringAlgorithms.h | |
parent | 5d80d7cb6a76e92ac5b0fa5352cdda64415124b7 (diff) | |
download | CMake-31f158e4c881bea2b526102b2024b0fb34ade42d.zip CMake-31f158e4c881bea2b526102b2024b0fb34ade42d.tar.gz CMake-31f158e4c881bea2b526102b2024b0fb34ade42d.tar.bz2 |
cmStringAlgorithms: Add functions to parse strings to long long integers
Diffstat (limited to 'Source/cmStringAlgorithms.h')
-rw-r--r-- | Source/cmStringAlgorithms.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmStringAlgorithms.h b/Source/cmStringAlgorithms.h index 492e588..83938bc 100644 --- a/Source/cmStringAlgorithms.h +++ b/Source/cmStringAlgorithms.h @@ -303,3 +303,13 @@ bool cmStrToLong(std::string const& str, long* value); * integer */ bool cmStrToULong(const char* str, unsigned long* value); bool cmStrToULong(std::string const& str, unsigned long* value); + +/** Converts a string to long long. Expects that the whole string + * is an integer */ +bool cmStrToLongLong(const char* str, long long* value); +bool cmStrToLongLong(std::string const& str, long long* value); + +/** Converts a string to unsigned long long. Expects that the whole string + * is an integer */ +bool cmStrToULongLong(const char* str, unsigned long long* value); +bool cmStrToULongLong(std::string const& str, unsigned long long* value); |