@@ -553,8 +553,7 @@ impl char {
553553 pub fn is_alphabetic ( self ) -> bool {
554554 match self {
555555 'a' ..='z' | 'A' ..='Z' => true ,
556- c if c > '\x7f' => derived_property:: Alphabetic ( c) ,
557- _ => false ,
556+ c => c > '\x7f' && derived_property:: Alphabetic ( c) ,
558557 }
559558 }
560559
@@ -585,8 +584,7 @@ impl char {
585584 pub fn is_lowercase ( self ) -> bool {
586585 match self {
587586 'a' ..='z' => true ,
588- c if c > '\x7f' => derived_property:: Lowercase ( c) ,
589- _ => false ,
587+ c => c > '\x7f' && derived_property:: Lowercase ( c) ,
590588 }
591589 }
592590
@@ -617,8 +615,7 @@ impl char {
617615 pub fn is_uppercase ( self ) -> bool {
618616 match self {
619617 'A' ..='Z' => true ,
620- c if c > '\x7f' => derived_property:: Uppercase ( c) ,
621- _ => false ,
618+ c => c > '\x7f' && derived_property:: Uppercase ( c) ,
622619 }
623620 }
624621
@@ -646,8 +643,7 @@ impl char {
646643 pub fn is_whitespace ( self ) -> bool {
647644 match self {
648645 ' ' | '\x09' ..='\x0d' => true ,
649- c if c > '\x7f' => property:: White_Space ( c) ,
650- _ => false ,
646+ c => c > '\x7f' && property:: White_Space ( c) ,
651647 }
652648 }
653649
@@ -744,8 +740,7 @@ impl char {
744740 pub fn is_numeric ( self ) -> bool {
745741 match self {
746742 '0' ..='9' => true ,
747- c if c > '\x7f' => general_category:: N ( c) ,
748- _ => false ,
743+ c => c > '\x7f' && general_category:: N ( c) ,
749744 }
750745 }
751746
0 commit comments