mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement USVString.
This commit is contained in:
parent
4157a2b02b
commit
bbbdb98897
5 changed files with 93 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue