unsafe fn add_string(&mut self, object: &[u8], value: &str) -> bool {
        let value = CString::new(value).unwrap();
        let value = value.as_ptr();

        FcPatternAddString(self.as_ptr(), object.as_ptr() as *mut c_char, value as *mut FcChar8)
            == 1
    }
/// Add a string value to the pattern.
///
/// If the returned value is `true`, the value is added at the end of
/// any existing list, otherwise it is inserted at the beginning.
///
/// # Unsafety
///
/// `object` is not checked to be a valid null-terminated string.
Add a string value to the pattern.
If the returned value is `true`, the value is added at the end of
any existing list, otherwise it is inserted at the beginning.
Add a string value to the pattern . If the returned value is ` true ` the value is added at the end of any existing list otherwise it is inserted at the beginning .
unsafe fn add_string(&mut self, object: &[u8], value: &str) -> bool {
        let value = CString::new(value).unwrap();
        let value = value.as_ptr();
        FcPatternAddString(self.as_ptr(), object.as_ptr() as *mut c_char, value as *mut FcChar8)
            == 1
    }
unsafe fn add_string ( & mut self , object : & [ u8 ] , value : & str ) -> bool { let value = CString :: new ( value ) . unwrap ( ) ; let value = value . as_ptr ( ) ; FcPatternAddString ( self . as_ptr ( ) , object . as_ptr ( ) as * mut c_char , value as * mut FcChar8 ) == 1 }
Add a string value to the pattern.
Add a string value to the pattern .
&mut self
object
&[u8]
value
&str
&mut self
object
&[u8]
value
&str
unsafety
`object` is not checked to be a valid null-terminated string.
` object ` is not checked to be a valid null - terminated string .