diff options
author | lloyd <[email protected]> | 2010-10-13 03:34:49 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 03:34:49 +0000 |
commit | fcd3aba1ff6b8597b31165474573dbb339479c14 (patch) | |
tree | f78d39b6d30c91139cb8f47be580e1c648e50c17 /src/utils/parsing.h | |
parent | ba142ed2eaa21445d49cbbc8ae3b3d4dc625b9d7 (diff) |
Post-merge fixups
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r-- | src/utils/parsing.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h index 12370bf2b..98dcd82b5 100644 --- a/src/utils/parsing.h +++ b/src/utils/parsing.h @@ -48,19 +48,12 @@ BOTAN_DLL bool x500_name_cmp(const std::string& name1, const std::string& name2); /** -* Convert a number to a string -* @param n the integer to convert to a string -* @param min_len the min length of the output string -* @return n convert to a string -*/ -BOTAN_DLL std::string to_string(u64bit n, size_t min_len = 0); - -/** * Convert a string to a number * @param str the string to convert * @return number value of the string */ -BOTAN_DLL u32bit to_u32bit(const std::string& str); +inline u32bit to_u32bit(const std::string& str) + { return std::stoul(str); } /** * Convert a time specification to a number |