Merge branch 'unicode_perf' into json_perf
This commit is contained in:
commit
149c976aa0
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,8 @@ pub fn is_uppercase(c: char) -> bool { general_category::Lu(c) }
|
|||
///
|
||||
#[inline]
|
||||
pub fn is_whitespace(c: char) -> bool {
|
||||
('\x09' <= c && c <= '\x0d')
|
||||
c == ' '
|
||||
|| ('\x09' <= c && c <= '\x0d')
|
||||
|| general_category::Zs(c)
|
||||
|| general_category::Zl(c)
|
||||
|| general_category::Zp(c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue