3
3
use crate :: slice;
4
4
use crate :: str:: from_utf8_unchecked_mut;
5
5
use crate :: unicode:: printable:: is_printable;
6
- use crate :: unicode:: tables :: { conversions , derived_property , general_category , property } ;
6
+ use crate :: unicode:: { self , conversions } ;
7
7
8
8
use super :: * ;
9
9
@@ -552,7 +552,7 @@ impl char {
552
552
pub fn is_alphabetic ( self ) -> bool {
553
553
match self {
554
554
'a' ..='z' | 'A' ..='Z' => true ,
555
- c => c > '\x7f' && derived_property :: Alphabetic ( c) ,
555
+ c => c > '\x7f' && unicode :: Alphabetic ( c) ,
556
556
}
557
557
}
558
558
@@ -583,7 +583,7 @@ impl char {
583
583
pub fn is_lowercase ( self ) -> bool {
584
584
match self {
585
585
'a' ..='z' => true ,
586
- c => c > '\x7f' && derived_property :: Lowercase ( c) ,
586
+ c => c > '\x7f' && unicode :: Lowercase ( c) ,
587
587
}
588
588
}
589
589
@@ -614,7 +614,7 @@ impl char {
614
614
pub fn is_uppercase ( self ) -> bool {
615
615
match self {
616
616
'A' ..='Z' => true ,
617
- c => c > '\x7f' && derived_property :: Uppercase ( c) ,
617
+ c => c > '\x7f' && unicode :: Uppercase ( c) ,
618
618
}
619
619
}
620
620
@@ -642,7 +642,7 @@ impl char {
642
642
pub fn is_whitespace ( self ) -> bool {
643
643
match self {
644
644
' ' | '\x09' ..='\x0d' => true ,
645
- c => c > '\x7f' && property :: White_Space ( c) ,
645
+ c => c > '\x7f' && unicode :: White_Space ( c) ,
646
646
}
647
647
}
648
648
@@ -693,7 +693,7 @@ impl char {
693
693
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
694
694
#[ inline]
695
695
pub fn is_control ( self ) -> bool {
696
- general_category :: Cc ( self )
696
+ unicode :: Cc ( self )
697
697
}
698
698
699
699
/// Returns `true` if this `char` has the `Grapheme_Extend` property.
@@ -707,7 +707,7 @@ impl char {
707
707
/// [`DerivedCoreProperties.txt`]: https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt
708
708
#[ inline]
709
709
pub ( crate ) fn is_grapheme_extended ( self ) -> bool {
710
- derived_property :: Grapheme_Extend ( self )
710
+ unicode :: Grapheme_Extend ( self )
711
711
}
712
712
713
713
/// Returns `true` if this `char` has one of the general categories for numbers.
@@ -739,7 +739,7 @@ impl char {
739
739
pub fn is_numeric ( self ) -> bool {
740
740
match self {
741
741
'0' ..='9' => true ,
742
- c => c > '\x7f' && general_category :: N ( c) ,
742
+ c => c > '\x7f' && unicode :: N ( c) ,
743
743
}
744
744
}
745
745
0 commit comments