// to be a printable character. If it was just interpreted as a control code, nothing to remove\r
if (resultLength > 0 && lastCharacterWasPrintable) {\r
if (codeSet == CODE_CODE_C) {\r
// to be a printable character. If it was just interpreted as a control code, nothing to remove\r
if (resultLength > 0 && lastCharacterWasPrintable) {\r
if (codeSet == CODE_CODE_C) {\r
- result.Remove(resultLength - 2, resultLength);\r
+ result.Remove(resultLength - 2, 2);\r
- result.Remove(resultLength - 1, resultLength);\r
+ result.Remove(resultLength - 1, 1);\r
-}
\ No newline at end of file