From bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 May 2021 01:33:39 +0300 Subject: move _address functions to winapi::address --- include/winapi/debug/address.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/winapi/debug/address.hpp b/include/winapi/debug/address.hpp index 1370ed4..e5db42d 100644 --- a/include/winapi/debug/address.hpp +++ b/include/winapi/debug/address.hpp @@ -14,21 +14,24 @@ namespace winapi { typedef DWORD64 Address; -inline std::string format_address(Address address) { +namespace address { + +inline std::string format(Address address) { std::ostringstream oss; oss << std::hex << std::showbase << address; return oss.str(); } -inline std::string format_address(void* address) { - return format_address(reinterpret_cast
(address)); +inline std::string format(void* address) { + return format(reinterpret_cast
(address)); } -inline bool parse_address(Address& dest, const std::string& src) { +inline bool parse(Address& dest, const std::string& src) { std::istringstream iss{src}; iss >> std::hex; char c; return iss >> dest && !iss.get(c); } +} // namespace address } // namespace winapi -- cgit v1.2.3