Function rb_str_shared_replace

Source
pub unsafe extern "C" fn rb_str_shared_replace(dst: VALUE, src: VALUE)
Expand description

Replaces the contents of the former with the latter.

@param[out] dst Destination object. @param[in] src Source object. @pre Both objects must not be any arbitrary objects except ::RString. @post dst’s former components are abandoned. It now has the identical encoding, length, and contents to src. @see rb_str_replace

@internal

§@shyouhei doesn’t understand why this is useful to extension libraries. Just use rb_str_replace. What’s wrong with that?

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3