[][src]Function voca_rs::strip::strip_bom

pub fn strip_bom(subject: &str) -> String

Strips the byte order mark (BOM) from the beginning of subject.

Arguments

Example

use voca_rs::*;
strip::strip_bom("\u{FEFF}summertime sadness");
// => "summertime sadness"
strip::strip_bom("summertime sadness");
// => "summertime sadness"
use voca_rs::Voca;
"\u{FEFF}summertime sadness"._strip_bom();
// => "summertime sadness"