2016-05-04 19:24:41 +02:00
|
|
|
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
|
|
|
*
|
|
|
|
* OpenRCT2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
|
|
|
*****************************************************************************/
|
|
|
|
#pragma endregion
|
|
|
|
|
2016-01-12 20:08:41 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#include "../common.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Path
|
|
|
|
{
|
2017-01-05 14:13:22 +01:00
|
|
|
std::string Append(const std::string &a, const std::string &b);
|
2016-01-12 20:08:41 +01:00
|
|
|
utf8 * Append(utf8 * buffer, size_t bufferSize, const utf8 * src);
|
2016-11-13 14:15:01 +01:00
|
|
|
utf8 * GetDirectory(const utf8 * path);
|
2016-01-30 00:18:28 +01:00
|
|
|
utf8 * GetDirectory(utf8 * buffer, size_t bufferSize, const utf8 * path);
|
2016-04-17 16:21:35 +02:00
|
|
|
const utf8 * GetFileName(const utf8 * path);
|
2017-01-05 14:13:22 +01:00
|
|
|
std::string GetFileNameWithoutExtension(const std::string &path);
|
2016-11-12 16:52:03 +01:00
|
|
|
utf8 * GetFileNameWithoutExtension(const utf8 * path);
|
2016-01-29 01:06:02 +01:00
|
|
|
utf8 * GetFileNameWithoutExtension(utf8 * buffer, size_t bufferSize, const utf8 * path);
|
2016-04-19 23:09:42 +02:00
|
|
|
const utf8 * GetExtension(const utf8 * path);
|
2016-01-29 01:06:02 +01:00
|
|
|
utf8 * GetAbsolute(utf8 * buffer, size_t bufferSize, const utf8 * relativePath);
|
2016-01-29 20:39:31 +01:00
|
|
|
bool Equals(const utf8 * a, const utf8 * b);
|
2016-01-12 20:08:41 +01:00
|
|
|
}
|