diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-08-01 11:14:19 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2024-09-09 15:04:51 +0200 |
| commit | 16f241f0aa047ed77ccea6b6c361b421a72d0454 (patch) | |
| tree | 6eccf0e125885d7221343b7026cfb5703745f153 /include/ruby/io | |
| parent | 966901b39dd7b37eec68dd6e8a76a79827dc522f (diff) | |
Implement String#append_as_bytes(String | Integer, ...)
[Feature #20594]
A handy method to construct a string out of multiple chunks.
Contrary to `String#concat`, it doesn't do any encoding negociation,
and simply append the content as bytes regardless of whether this
result in a broken string or not.
It's the caller responsibility to check for `String#valid_encoding?`
in cases where it's needed.
When passed integers, only the lower byte is considered, like in
`String#setbyte`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11552
Diffstat (limited to 'include/ruby/io')
0 files changed, 0 insertions, 0 deletions
