mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-22 06:21:41 +00:00
d2d51373b5
* core: Rewrite PSF parser & add encoder add .sfo hex pattern to /scripts * core/fs: allow to mount path as read-only * common: Add CString wrapper to handle native null-terminated strings * SaveData: rewrite to implement full functionality * mock value for SYSTEM_VER * SavaData: backup features * SavaData: SaveDataMemory features * imgui Ref-counted textures - has a background thread to decode textures * imgui: rework gamepad navigation * PSF: fixed psf not using enum class for PSFEntryFmt (was a standard old ugly enum) - Add null check to CString when itself is used in a nullable field * SaveDataDialog implementation - Fix Mounting/Unmounting check of SaveInstance
25 lines
605 B
C++
25 lines
605 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);
|
|
|
|
#ifdef _WIN32
|
|
[[nodiscard]] std::string UTF16ToUTF8(std::wstring_view input);
|
|
[[nodiscard]] std::wstring UTF8ToUTF16W(std::string_view str);
|
|
#endif
|
|
|
|
} // namespace Common
|