mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 04:37:02 +00:00
move to top
This commit is contained in:
parent
ca38139ff5
commit
deddf0f256
@ -7,6 +7,10 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
#include "json.hpp"
|
||||||
|
|
||||||
|
using json = nlohmann::json;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static inline size_t MinSize(const size_t size, const std::basic_string_view<T> string) {
|
static inline size_t MinSize(const size_t size, const std::basic_string_view<T> string) {
|
||||||
if (size == SIZE_MAX || size > string.size()) {
|
if (size == SIZE_MAX || size > string.size()) {
|
||||||
@ -327,10 +331,6 @@ std::vector<std::string> GeneralUtils::GetSqlFileNamesFromFolder(const std::stri
|
|||||||
return sortedFiles;
|
return sortedFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "json.hpp"
|
|
||||||
|
|
||||||
using json = nlohmann::json;
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
[[nodiscard]] std::optional<json> GeneralUtils::TryParse(std::string_view str) {
|
[[nodiscard]] std::optional<json> GeneralUtils::TryParse(std::string_view str) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user