Mercurial > minori
comparison include/core/strings.h @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 23:15:43 -0400 |
parents | 4c6dd5999b39 |
children | c69230dc2b5d |
comparison
equal
deleted
inserted
replaced
63:3d2decf093bb | 64:fe719c109dbc |
---|---|
1 #ifndef __core__strings_h | 1 #ifndef __core__strings_h |
2 #define __core__strings_h | 2 #define __core__strings_h |
3 | 3 |
4 #include <string> | 4 #include <string> |
5 #include <vector> | 5 #include <vector> |
6 | |
7 class QString; | |
6 | 8 |
7 namespace Strings { | 9 namespace Strings { |
8 | 10 |
9 /* Implode function: takes a vector of strings and turns it | 11 /* Implode function: takes a vector of strings and turns it |
10 into a string, separated by delimiters. */ | 12 into a string, separated by delimiters. */ |
20 | 22 |
21 std::string ToUpper(const std::string& string); | 23 std::string ToUpper(const std::string& string); |
22 std::string ToLower(const std::string& string); | 24 std::string ToLower(const std::string& string); |
23 | 25 |
24 std::wstring ToWstring(const std::string& string); | 26 std::wstring ToWstring(const std::string& string); |
27 std::wstring ToWstring(const QString& string); | |
25 std::string ToUtf8String(const std::wstring& wstring); | 28 std::string ToUtf8String(const std::wstring& wstring); |
29 std::string ToUtf8String(const QString& string); | |
30 QString ToQString(const std::string& string); | |
31 QString ToQString(const std::wstring& wstring); | |
26 | 32 |
27 }; // namespace Strings | 33 }; // namespace Strings |
28 #endif // __core__strings_h | 34 #endif // __core__strings_h |