rb_str_export

Function rb_str_export 

Source
pub unsafe extern "C" fn rb_str_export(obj: VALUE) -> VALUE
Expand description

Identical to rb_str_to_str, except it additionally converts the string into default external encoding. Ruby has a concept called encodings. A string can have different encoding than the environment expects. Someone has to make sure its contents be converted to something suitable. This is that routine. Call it when necessary.

ยง@param[in] obj Target object. @exception rb_eTypeError No implicit conversion to String. @return Converted ruby string of default external encoding.

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