@@ -167,17 +167,36 @@ pub trait UnicodeChar {
167167 /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
168168 /// mostly similar to ID_Start but modified for closure under NFKx.
169169 #[ allow( non_snake_case) ]
170+ #[ deprecated = "use is_xid_start" ]
170171 fn is_XID_start ( self ) -> bool ;
171172
173+ /// Returns whether the specified character satisfies the 'XID_Start'
174+ /// Unicode property.
175+ ///
176+ /// 'XID_Start' is a Unicode Derived Property specified in
177+ /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
178+ /// mostly similar to ID_Start but modified for closure under NFKx.
179+ #[ allow( non_snake_case) ]
180+ fn is_xid_start ( self ) -> bool ;
181+
172182 /// Returns whether the specified `char` satisfies the 'XID_Continue'
173183 /// Unicode property.
174184 ///
175185 /// 'XID_Continue' is a Unicode Derived Property specified in
176186 /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
177187 /// mostly similar to 'ID_Continue' but modified for closure under NFKx.
178188 #[ allow( non_snake_case) ]
189+ #[ deprecated = "use is_xid_continue" ]
179190 fn is_XID_continue ( self ) -> bool ;
180191
192+ /// Returns whether the specified `char` satisfies the 'XID_Continue'
193+ /// Unicode property.
194+ ///
195+ /// 'XID_Continue' is a Unicode Derived Property specified in
196+ /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
197+ /// mostly similar to 'ID_Continue' but modified for closure under NFKx.
198+ #[ allow( non_snake_case) ]
199+ fn is_xid_continue ( self ) -> bool ;
181200
182201 /// Indicates whether a character is in lowercase.
183202 ///
@@ -267,10 +286,16 @@ impl UnicodeChar for char {
267286 }
268287 }
269288
289+ #[ deprecated = "use is_xid_start" ]
270290 fn is_XID_start ( self ) -> bool { derived_property:: XID_Start ( self ) }
271291
292+ #[ deprecated = "use is_xid_continue" ]
272293 fn is_XID_continue ( self ) -> bool { derived_property:: XID_Continue ( self ) }
273294
295+ fn is_xid_start ( self ) -> bool { derived_property:: XID_Start ( self ) }
296+
297+ fn is_xid_continue ( self ) -> bool { derived_property:: XID_Continue ( self ) }
298+
274299 fn is_lowercase ( self ) -> bool {
275300 match self {
276301 'a' ... 'z' => true ,
0 commit comments