/* * call-seq: * IDN::Stringprep.with_profile(string, profile) => string * * Prepares a string in UTF-8 format according to the given stringprep * profile name which must be one of the internally supported stringprep * profiles (for details see IANA's Profile Names in RFC3454). * * Raises IDN::Stringprep::StringprepError on failure. */ static VALUE with_profile(VALUE self, VALUE str, VALUE profile) { profile = rb_check_convert_type(profile, T_STRING, "String", "to_s"); return stringprep_internal(str, RSTRING(profile)->ptr); }