mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Parse srcset attribute
This commit is contained in:
parent
77afc3f33a
commit
1f1ca3ac8d
4 changed files with 280 additions and 2 deletions
|
@ -58,7 +58,8 @@ pub fn split_commas<'a>(s: &'a str) -> Filter<Split<'a, char>, fn(&&str) -> bool
|
|||
s.split(',').filter(not_empty as fn(&&str) -> bool)
|
||||
}
|
||||
|
||||
fn is_ascii_digit(c: &char) -> bool {
|
||||
/// Character is ascii digit
|
||||
pub fn is_ascii_digit(c: &char) -> bool {
|
||||
match *c {
|
||||
'0'...'9' => true,
|
||||
_ => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue