mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 11:19:03 +01:00
More D3D11 progress
This commit is contained in:
1 parent
6b193e7434
commit
f9b840dbfd
11 files changed
+79
-35
No files matched your search
@@ -39,6 +39,19 @@ void OutputDebugStringUTF8(const char *p) {
|
||||
|
||||
#endif
|
||||
|
||||
std::string LineNumberString(const std::string &str) {
|
||||
std::stringstream input(str);
|
||||
std::stringstream output;
|
||||
std::string line;
|
||||
|
||||
int lineNumber = 1;
|
||||
while (std::getline(input, line)) {
|
||||
output << std::setw(4) << lineNumber++ << ": " << line << std::endl;
|
||||
}
|
||||
|
||||
return output.str();
|
||||
}
|
||||
|
||||
void StringTrimEndNonAlphaNum(char *str) {
|
||||
ssize_t n = strlen(str);
|
||||
while (!isalnum(str[n]) && n >= 0) {
|
||||
|
||||
Reference in new issue
Block a user