Function rb_str_replace

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

Replaces the contents of the former object with the stringised contents of the latter.

§@param[out] dst Destination object. @param[in] src Source object. @exception rb_eTypeError src has no implicit conversion to String. @exception rb_eRuntimeError dst is locktmp-ed. @exception rb_eFrozenError dst is frozen. @return The passed dst. @pre dst must not be any arbitrary object except ::RString. @post dst’s former components are abandoned. It now has the identical encoding, length, and contents to src.

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