mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-30 23:33:17 +00:00
* devtools: shader editing and compiling * devtools: patch shader at runtime * devtools: shader editing load patch even with config disabled
26 lines
667 B
C++
26 lines
667 B
C++
// SPDX-FileCopyrightText: 2013 Dolphin Emulator Project
|
|
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Common {
|
|
|
|
/// Make a string lowercase
|
|
[[nodiscard]] std::string ToLower(std::string_view str);
|
|
|
|
void ToLowerInPlace(std::string& str);
|
|
|
|
std::vector<std::string> SplitString(const std::string& str, char delimiter);
|
|
|
|
std::string_view U8stringToString(std::u8string_view u8str);
|
|
|
|
#ifdef _WIN32
|
|
[[nodiscard]] std::string UTF16ToUTF8(std::wstring_view input);
|
|
[[nodiscard]] std::wstring UTF8ToUTF16W(std::string_view str);
|
|
#endif
|
|
|
|
} // namespace Common
|