@@ -221,7 +221,7 @@ void inplace::pad_right(std::wstring& Str, size_t const CellsAvailable, wchar_t
221221
222222void inplace::fit_to_left (std::wstring& Str, size_t const CellsAvailable)
223223{
224- cut_right (Str, CellsAvailable);
224+ truncate_right (Str, CellsAvailable);
225225 pad_right (Str, CellsAvailable);
226226}
227227
@@ -238,13 +238,13 @@ void inplace::fit_to_center(std::wstring& Str, size_t const CellsAvailable)
238238 }
239239 else
240240 {
241- cut_right (Str, CellsAvailable);
241+ truncate_right (Str, CellsAvailable);
242242 }
243243}
244244
245245void inplace::fit_to_right (std::wstring& Str, size_t const CellsAvailable)
246246{
247- cut_right (Str, CellsAvailable);
247+ truncate_right (Str, CellsAvailable);
248248 pad_left (Str, CellsAvailable);
249249}
250250
@@ -2039,8 +2039,8 @@ TEST_CASE("strmix.fit")
20392039 { L" 1" sv, 2 , L" 1 " sv, L" 1 " sv, L" 1" sv, },
20402040
20412041 { L" 12345" sv, 0 , {}, {}, {}, },
2042- { L" 12345" sv, 1 , L" 1 " sv, L" 1 " sv, L" 1 " sv, },
2043- { L" 12345" sv, 3 , L" 123 " sv, L" 123 " sv, L" 123 " sv, },
2042+ { L" 12345" sv, 1 , L" … " sv, L" … " sv, L" … " sv, },
2043+ { L" 12345" sv, 3 , L" 12… " sv, L" 12… " sv, L" 12… " sv, },
20442044 { L" 12345" sv, 5 , L" 12345" sv, L" 12345" sv, L" 12345" sv, },
20452045 { L" 12345" sv, 7 , L" 12345 " sv, L" 12345 " sv, L" 12345" sv, },
20462046 };
0 commit comments