Implement USVString.

This commit is contained in:
Ms2ger 2015-03-13 16:51:22 +01:00
parent 4157a2b02b
commit bbbdb98897
5 changed files with 93 additions and 2 deletions

View file

@ -157,3 +157,7 @@ impl FromStr for ByteString {
Ok(ByteString::new(s.to_owned().into_bytes()))
}
}
/// A string that is constructed from a UCS-2 buffer by replacing invalid code
/// points with the replacement character.
pub struct USVString(pub String);