Compiles now

This commit is contained in:
Love 2025-01-22 13:24:08 +01:00
parent f9dc3628f4
commit 2295fdc3ce
4 changed files with 14 additions and 2 deletions

7
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"files.associations": {
"iostream": "cpp",
"vector": "cpp",
"format": "cpp"
}
}

View File

@ -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"

View File

@ -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:

View File

@ -1,5 +1,7 @@
#pragma once #pragma once
#include <string> #include <string>
#include <cstdint>
/** /**
* @brief String utility functions. * @brief String utility functions.