shadPS4/src/common/string_util.h

23 lines
560 B
C
Raw Normal View History

2024-02-23 21:32:32 +00:00
// SPDX-FileCopyrightText: 2013 Dolphin Emulator Project
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2023-06-18 14:54:22 +00:00
#pragma once
2023-06-18 14:54:22 +00:00
#include <string>
#include <vector>
2023-06-18 14:54:22 +00:00
namespace Common {
2023-06-18 14:54:22 +00:00
/// Make a string lowercase
[[nodiscard]] std::string ToLower(std::string str);
std::vector<std::string> SplitString(const std::string& str, char delimiter);
2023-06-18 14:54:22 +00:00
#ifdef _WIN32
[[nodiscard]] std::string UTF16ToUTF8(std::wstring_view input);
[[nodiscard]] std::wstring UTF8ToUTF16W(std::string_view str);
#endif
} // namespace Common