Compiles now
This commit is contained in:
parent
f9dc3628f4
commit
2295fdc3ce
7
.vscode/settings.json
vendored
Normal file
7
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"iostream": "cpp",
|
||||||
|
"vector": "cpp",
|
||||||
|
"format": "cpp"
|
||||||
|
}
|
||||||
|
}
|
@ -9,6 +9,7 @@
|
|||||||
#include "Page.hpp"
|
#include "Page.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <format>
|
||||||
|
|
||||||
#include "stringutil.hpp"
|
#include "stringutil.hpp"
|
||||||
#include "cpr/cpr.h"
|
#include "cpr/cpr.h"
|
||||||
|
@ -9,11 +9,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
static constexpr uint_fast8_t DEFAULT_NUMBER = 100;
|
static constexpr uint_fast8_t DEFAULT_NUMBER = 100;
|
||||||
static constexpr uint_fast8_t MAX_WHITESPACE = 2;
|
static constexpr uint_fast8_t MAX_WHITESPACE = 2;
|
||||||
|
|
||||||
class Page {
|
class Page
|
||||||
|
{
|
||||||
private:
|
private:
|
||||||
uint_fast8_t number{};
|
uint_fast8_t number{};
|
||||||
std::vector<std::string> subpages;
|
std::vector<std::string> subpages;
|
||||||
@ -31,7 +34,6 @@ public:
|
|||||||
|
|
||||||
std::string str() const;
|
std::string str() const;
|
||||||
|
|
||||||
|
|
||||||
bool refresh();
|
bool refresh();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief String utility functions.
|
* @brief String utility functions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user