Compare commits

...

1 Commits

Author SHA1 Message Date
Gordon Lam (SH)
da7465f5f8 test: Add string truncation utility (Fixes #45363) 2026-02-04 08:25:45 -08:00

View File

@@ -0,0 +1,18 @@
// Test string utilities - mock for orchestration test
// Related to issue #45363
#pragma once
#include <string>
namespace PowerToys {
namespace Utils {
inline std::wstring TruncateString(const std::wstring& input, size_t maxLength) {
if (input.length() <= maxLength) return input;
if (maxLength <= 3) return input.substr(0, maxLength);
return input.substr(0, maxLength - 3) + L"...";
}
} // namespace Utils
} // namespace PowerToys