2022-07-02 21:56:10 +02:00
|
|
|
#ifndef HTML_UTILS_H
|
|
|
|
#define HTML_UTILS_H
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-07-02 21:56:10 +02:00
|
|
|
#include "core/ustring.h"
|
|
|
|
#include "core/vector.h"
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-07-02 21:56:10 +02:00
|
|
|
class HTMLUtils {
|
2022-06-25 01:55:54 +02:00
|
|
|
public:
|
|
|
|
static String get_pagination(const String &base_url, const uint32_t max, const uint32_t current_index, const uint32_t max_visible_links = 10);
|
|
|
|
static String get_pagination_links(const String &base_url, const Vector<String> &links, const uint32_t current_index, const uint32_t max_visible_links = 10);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
2022-07-02 21:56:10 +02:00
|
|
|
#endif
|