rcpp_framework/core/utils.h

20 lines
547 B
C
Raw Normal View History

#ifndef UTILS_H
#define UTILS_H
#include "core/string.h"
#include "core/containers/vector.h"
class Utils {
2020-12-28 23:13:54 +01:00
public:
static void newline_to_br(String *str);
2020-12-28 23:13:54 +01:00
//htmlspecialchars
static void markdown_to_html(String *str);
2020-12-28 23:13:54 +01:00
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:
};
#endif