mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Basic upload via web browser support, only single file almost works
This commit is contained in:
1 parent
c686d48268
commit
dc682fb2c8
13 files changed
+420
-26
No files matched your search
@@ -361,6 +361,16 @@ void SplitString(std::string_view str, const char delim, std::vector<std::string
|
||||
}
|
||||
}
|
||||
|
||||
bool SplitStringOnce(std::string_view str, std::string_view *firstPart, std::string_view *secondPart, char delim) {
|
||||
size_t pos = str.find(delim);
|
||||
if (pos == std::string_view::npos) {
|
||||
return false;
|
||||
}
|
||||
*firstPart = str.substr(0, pos);
|
||||
*secondPart = str.substr(pos + 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
void SplitString(std::string_view str, const char delim, std::vector<std::string> &output, bool trimOutput) {
|
||||
size_t next = 0;
|
||||
size_t pos = 0;
|
||||
|
||||
Reference in new issue
Block a user