A tool for deriving PKG packet encryption keys for ps4 written in c++
| 1 | // SPDX-FileCopyrightText: 2013 Dolphin Emulator Project |
| 2 | // SPDX-FileCopyrightText: 2014 Citra Emulator Project |
| 3 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <string> |
| 8 | #include <vector> |
| 9 | |
| 10 | namespace Common { |
| 11 | |
| 12 | /// Make a string lowercase |
| 13 | [[nodiscard]] std::string ToLower(std::string_view str); |
| 14 | |
| 15 | void ToLowerInPlace(std::string& str); |
| 16 | |
| 17 | std::vector<std::string> SplitString(const std::string& str, char delimiter); |
| 18 | |
| 19 | std::string_view U8stringToString(std::u8string_view u8str); |
| 20 | |
| 21 | #ifdef _WIN32 |
| 22 | [[nodiscard]] std::string UTF16ToUTF8(std::wstring_view input); |
| 23 | [[nodiscard]] std::wstring UTF8ToUTF16W(std::string_view str); |
| 24 | #endif |
| 25 | |
| 26 | } // namespace Common |
| 27 |