mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 11:57:49 +00:00
Merge pull request #13100 from liamwhite/audio-ipc
audio: move to new ipc
This commit is contained in:
commit
56834236dc
59 changed files with 1882 additions and 2056 deletions
|
@ -38,6 +38,10 @@ std::string StringFromBuffer(std::span<const u8> data) {
|
|||
return std::string(data.begin(), std::find(data.begin(), data.end(), '\0'));
|
||||
}
|
||||
|
||||
std::string StringFromBuffer(std::span<const char> data) {
|
||||
return std::string(data.begin(), std::find(data.begin(), data.end(), '\0'));
|
||||
}
|
||||
|
||||
// Turns " hej " into "hej". Also handles tabs.
|
||||
std::string StripSpaces(const std::string& str) {
|
||||
const std::size_t s = str.find_first_not_of(" \t\r\n");
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace Common {
|
|||
[[nodiscard]] std::string ToUpper(std::string str);
|
||||
|
||||
[[nodiscard]] std::string StringFromBuffer(std::span<const u8> data);
|
||||
[[nodiscard]] std::string StringFromBuffer(std::span<const char> data);
|
||||
|
||||
[[nodiscard]] std::string StripSpaces(const std::string& s);
|
||||
[[nodiscard]] std::string StripQuotes(const std::string& s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue