mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[PowerRename] Add option for Capitalization (#10213)
* Add camelcase instances + helper translation * Add camel case testing * Update Helpers.cpp * Update PowerRenameUI.cpp * Update src/modules/powerrename/ui/PowerRenameUI.cpp Co-authored-by: Enrico Giordani <enricogior@users.noreply.github.com> * Change camel case to capitalized, move ui * Update PowerRenameManagerTests.cpp * Update PowerRenameUI.base.rc * Update PowerRenameUI.base.rc Co-authored-by: Enrico Giordani <enricogior@users.noreply.github.com>
This commit is contained in:
@@ -270,6 +270,16 @@ namespace PowerRenameManagerTests
|
||||
RenameHelper(renamePairs, ARRAYSIZE(renamePairs), L"foo", L"bar", SYSTEMTIME{ 2020, 7, 3, 22, 15, 6, 42, 453 }, DEFAULT_FLAGS | Titlecase);
|
||||
}
|
||||
|
||||
TEST_METHOD (VerifyCapitalizedTransform)
|
||||
{
|
||||
rename_pairs renamePairs[] = {
|
||||
{ L"foo and the to", L"Bar And The To", false, true, 0 },
|
||||
{ L"Test", L"Test_norename", false, false, 0 }
|
||||
};
|
||||
|
||||
RenameHelper(renamePairs, ARRAYSIZE(renamePairs), L"foo", L"bar", SYSTEMTIME{ 2020, 7, 3, 22, 15, 6, 42, 453 }, DEFAULT_FLAGS | Capitalized);
|
||||
}
|
||||
|
||||
TEST_METHOD (VerifyNameOnlyTransform)
|
||||
{
|
||||
rename_pairs renamePairs[] = {
|
||||
|
||||
Reference in New Issue
Block a user