mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 14:42:32 +00:00
replace some string ranges with function equivalents
This commit is contained in:
parent
9a66cb97a6
commit
d195f400ed
1 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ impl StringReader {
|
|||
}
|
||||
|
||||
pub fn is_allowed_number(c: char) -> bool {
|
||||
('0'..='9').contains(&c) || c == '.' || c == '-'
|
||||
c.is_ascii_digit() || c == '.' || c == '-'
|
||||
}
|
||||
|
||||
pub fn is_quoted_string_start(c: char) -> bool {
|
||||
|
@ -175,9 +175,9 @@ impl StringReader {
|
|||
}
|
||||
|
||||
pub fn is_allowed_in_unquoted_string(c: char) -> bool {
|
||||
('0'..='9').contains(&c)
|
||||
|| ('A'..='Z').contains(&c)
|
||||
|| ('a'..='z').contains(&c)
|
||||
c.is_ascii_digit()
|
||||
|| c.is_ascii_uppercase()
|
||||
|| c.is_ascii_lowercase()
|
||||
|| c == '_'
|
||||
|| c == '-'
|
||||
|| c == '.'
|
||||
|
|
Loading…
Reference in a new issue