LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
qtutil.h File Reference
#include "sllconfig.h"
#include <memory>
#include <utility>
#include <QLatin1String>
#include "ctstring.h"
+ Include dependency graph for qtutil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LC
 
namespace  LC::Util
 

Functions

template<typename Assoc >
auto LC::Util::Stlize (Assoc &&assoc) noexcept
 Converts an Qt's associative sequence assoc to an STL-like iteratable range.
 
template<typename Assoc >
auto LC::Util::StlizeKeys (Assoc &&assoc) noexcept
 
QByteArray LC::Util::AsByteArray (std::string_view view) noexcept
 Convert the view into a QByteArray without copying.
 
QByteArray LC::Util::ToByteArray (std::string_view view) noexcept
 Create a QByteArray with the data referenced by the view.
 
std::string_view LC::Util::AsStringView (const QByteArray &arr) noexcept
 Create a std::string_view referring the data within a QByteArray.
 
template<typename T , typename S >
std::pair< T, T > LC::Util::BreakAt (const T &str, S c) noexcept
 
template<typename T >
void LC::Util::ReleaseInto (std::unique_ptr< T > &&ptr, QObject &parent)
 
QString LC::Util::UnsafeFromView (QStringView sv)
 
constexpr QLatin1String LC::operator""_ql (const char *str, std::size_t size) noexcept
 
constexpr QStringView LC::operator""_qsv (const char16_t *str, std::size_t size) noexcept
 
QByteArray LC::operator""_qba (const char *str, std::size_t size) noexcept
 
template<Util::CtString S>
QString LC::operator""_qs ()