File indexing completed on 2024-05-26 05:24:35
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 utils/hex.h 0003 0004 This file is part of libkleopatra 0005 SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "kleo_export.h" 0013 0014 #include <string> 0015 0016 class QByteArray; 0017 0018 namespace Kleo 0019 { 0020 0021 KLEO_EXPORT std::string hexencode(const char *s); 0022 KLEO_EXPORT std::string hexdecode(const char *s); 0023 0024 KLEO_EXPORT std::string hexencode(const std::string &s); 0025 KLEO_EXPORT std::string hexdecode(const std::string &s); 0026 0027 KLEO_EXPORT QByteArray hexencode(const QByteArray &s); 0028 KLEO_EXPORT QByteArray hexdecode(const QByteArray &s); 0029 0030 }