diff options
author | lloyd <[email protected]> | 2009-12-08 15:29:22 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-08 15:29:22 +0000 |
commit | 457ce43934a4e51ead4d21e43013eef9d448d0e1 (patch) | |
tree | c40635ba737cf01f8e1e8c894422683222c07c4b /src/utils/parsing.h | |
parent | f63359f348d347bebee036b11d0c9641ee3d56d6 (diff) | |
parent | 9559e323cb631af4e154f5fd30ff2927748817ed (diff) |
propagate from branch 'net.randombit.botan' (head 142a9359ba02d5dfcf3f2c9f99902f82ab41724e)
to branch 'net.randombit.botan.c++0x' (head 390a9abce0eb6ee24eeb3cd243b6dcaaa8944ad0)
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r-- | src/utils/parsing.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h index 2c29d5b4d..cb8d61cee 100644 --- a/src/utils/parsing.h +++ b/src/utils/parsing.h @@ -23,10 +23,10 @@ BOTAN_DLL std::vector<u32bit> parse_asn1_oid(const std::string&); BOTAN_DLL bool x500_name_cmp(const std::string&, const std::string&); /* -* String/Integer Conversions +* Convert a string into an integer */ -BOTAN_DLL std::string to_string(u64bit, u32bit = 0); -BOTAN_DLL u32bit to_u32bit(const std::string&); +inline u32bit to_u32bit(const std::string& number) + { return stoul(number); } BOTAN_DLL u32bit timespec_to_u32bit(const std::string& timespec); |