cutelyst
4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
utils.h
1
/*
2
* SPDX-FileCopyrightText: (C) 2015-2023 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#pragma once
6
7
#include <Cutelyst/ParamsMultiMap>
8
#include <Cutelyst/cutelyst_global.h>
9
#include <chrono>
10
11
#include <QtCore/QStringList>
12
13
namespace
Cutelyst
{
14
24
namespace
Utils {
25
CUTELYST_LIBRARY
QByteArray
buildTable(
const
QVector<QStringList>
&table,
26
const
QStringList
&headers = {},
27
const
QString
&title = {});
28
29
CUTELYST_LIBRARY
QString
decodePercentEncoding(
QString
*s);
30
31
CUTELYST_LIBRARY
ParamsMultiMap
decodePercentEncoding(
char
*data,
int
len);
32
33
CUTELYST_LIBRARY
QString
decodePercentEncoding(
QByteArray
*ba);
34
62
CUTELYST_LIBRARY std::chrono::microseconds
durationFromString
(
QStringView
str,
bool
*ok =
nullptr
);
63
}
// namespace Utils
64
65
}
// namespace Cutelyst
Cutelyst::Utils::durationFromString
CUTELYST_LIBRARY std::chrono::microseconds durationFromString(QStringView str, bool *ok=nullptr)
Definition
utils.cpp:291
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition
group-core-actions.dox:1
QByteArray
QMultiMap
QString
QStringList
QStringView
QVector
Cutelyst
utils.h
Generated by
1.9.8