Skip to main content

addcslashes

Function addcslashes 

Source
pub fn addcslashes<'a>(s: &'a [u8], characters: &[u8]) -> Cow<'a, [u8]>
Expand description

PHP addcslashes($string, $characters): backslash-escapes the bytes of characters (with a..z ranges); those outside printable ASCII become \n, \t, \r, \a, \v, \b, \f or a 3-digit octal escape.