From aa0370b08ea8a1ad679a746c7be21a874f264fb6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 8 Aug 2016 00:49:04 +0300 Subject: Add ucase(), lcase(), casecmp(), alpha(), digit(), alnum() --- butl/sha256.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'butl/sha256.cxx') diff --git a/butl/sha256.cxx b/butl/sha256.cxx index 7c0b21e..fb1fcc8 100644 --- a/butl/sha256.cxx +++ b/butl/sha256.cxx @@ -9,9 +9,11 @@ #include #include // size_t -#include // isxdigit(), toupper(), tolower() +#include // isxdigit() #include // invalid_argument +#include // ucase(), lcase() + using SHA256_CTX = butl::sha256::context; extern "C" @@ -101,7 +103,7 @@ namespace butl if (i > 0 && i % 2 == 0) f += ":"; - f += toupper (c); + f += ucase (c); } return f; @@ -131,7 +133,7 @@ namespace butl if (!isxdigit (c)) bad (); - s += tolower (c); + s += lcase (c); } } -- cgit v1.1