mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Since this is replacing C0 control characters with other control characters rather than just removing them completely, "replace" is probably the more intuitive name for this function. This also removes the preallocation of the output buffer in the case where control characters were present in the input, letting the strings.Builder implementation manage the buffer growth automatically itself. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>