[Chapel Merge] Add swap operator for string and bytes types

Branch: refs/heads/main
Revision: 588839c
Author: jhh67
Link: Add swap operator for string and bytes types by jhh67 · Pull Request #19839 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19839 from jhh67/swap

Add swap operator for string and bytes types.

[Reviewed by @mppf]

Modified Files:
A test/statements/jhh/swaps/bytes.chpl

A test/statements/jhh/swaps/bytes.good
A test/statements/jhh/swaps/dist-bytes.chpl
A test/statements/jhh/swaps/dist-bytes.good
A test/statements/jhh/swaps/dist-bytes.numlocales
A test/statements/jhh/swaps/dist-bytes.skipif
A test/statements/jhh/swaps/dist-string.chpl
A test/statements/jhh/swaps/dist-string.good
A test/statements/jhh/swaps/dist-string.numlocales
A test/statements/jhh/swaps/dist-string.skipif
A test/statements/jhh/swaps/string.chpl
A test/statements/jhh/swaps/string.good
M modules/internal/Bytes.chpl
M modules/internal/String.chpl

Compare: https://github.com/chapel-lang/chapel/compare/f9e171981cf0...588839c53a1d