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
13namespace Cutelyst {
14
24namespace Utils {
25CUTELYST_LIBRARY QByteArray buildTable(const QVector<QStringList> &table,
26 const QStringList &headers = {},
27 const QString &title = {});
28
29CUTELYST_LIBRARY QString decodePercentEncoding(QString *s);
30
31CUTELYST_LIBRARY ParamsMultiMap decodePercentEncoding(char *data, int len);
32
33CUTELYST_LIBRARY QString decodePercentEncoding(QByteArray *ba);
34
62CUTELYST_LIBRARY std::chrono::microseconds durationFromString(QStringView str, bool *ok = nullptr);
63} // namespace Utils
64
65} // namespace Cutelyst
CUTELYST_LIBRARY std::chrono::microseconds durationFromString(QStringView str, bool *ok=nullptr)
Definition utils.cpp:291
The Cutelyst namespace holds all public Cutelyst API.