cutelyst
4.5.1
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_export.h>
9
#include <chrono>
10
11
#include <QtCore/QStringList>
12
13
namespace
Cutelyst
{
14
24
namespace
Utils {
25
CUTELYST_EXPORT
QByteArray
buildTable(
const
QVector<QStringList>
&table,
26
const
QStringList
&headers = {},
27
const
QString
&title = {});
28
29
CUTELYST_EXPORT
QString
decodePercentEncoding(
QString
*s);
30
31
CUTELYST_EXPORT
ParamsMultiMap
decodePercentEncoding(
char
*data,
int
len);
32
33
CUTELYST_EXPORT
QString
decodePercentEncoding(
QByteArray
*ba);
34
62
CUTELYST_EXPORT std::chrono::microseconds
durationFromString
(
QStringView
str,
bool
*ok =
nullptr
);
63
}
// namespace Utils
64
65
}
// namespace Cutelyst
Cutelyst::Utils::durationFromString
CUTELYST_EXPORT 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 on Tue Nov 26 2024 02:08:15 for cutelyst by
1.9.1