34#ifndef __QGPGME_UTIL_H__
35#define __QGPGME_UTIL_H__
39#include <gpgme++/error.h>
57static inline QString errorAsString(
const GpgME::Error &
error)
60 return QString::fromStdString(
error.asStdString());
62 return QString::fromLocal8Bit(
error.asStdString().c_str());
69static inline std::vector<std::string_view> split(
const std::string_view
s,
char delimiter)
71 std::vector<std::string_view> result;
72 std::string_view::size_type start = 0;
73 std::string_view::size_type end;
79 result.emplace_back(std::addressof(
s[start]), end - start);
81 }
while (end !=
s.size());
Definition qgpgmebackend.h:43