2023-12-10 23:23:15 +00:00
|
|
|
// SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
#include <string>
|
|
|
|
|
2023-12-11 23:29:55 +00:00
|
|
|
#define UNUSED(variable) (void)variable
|
|
|
|
|
2023-12-10 23:23:15 +00:00
|
|
|
void initPaths(const char* programPath);
|
|
|
|
const std::filesystem::path& sharedPath();
|
|
|
|
bool endsWith(const std::string& string, const std::string& query);
|
2023-12-11 23:29:55 +00:00
|
|
|
void ltrim(std::string& string);
|
|
|
|
void rtrim(std::string& string);
|
|
|
|
void trim(std::string& string);
|
|
|
|
std::string extract(std::string& string, std::string::size_type begin, std::string::size_type end);
|