@@ -161,6 +161,9 @@ enum DecompositionType {
161
161
/// External iterator for a string decomposition's characters.
162
162
///
163
163
/// For use with the `std::iter` module.
164
+ #[ allow( deprecated) ]
165
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
166
+ since = "1.0.0" ) ]
164
167
#[ derive( Clone ) ]
165
168
#[ unstable( feature = "unicode" ,
166
169
reason = "this functionality may be replaced with a more generic \
@@ -172,6 +175,7 @@ pub struct Decompositions<'a> {
172
175
sorted : bool
173
176
}
174
177
178
+ #[ allow( deprecated) ]
175
179
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
176
180
impl < ' a > Iterator for Decompositions < ' a > {
177
181
type Item = char ;
@@ -254,6 +258,9 @@ enum RecompositionState {
254
258
/// External iterator for a string recomposition's characters.
255
259
///
256
260
/// For use with the `std::iter` module.
261
+ #[ allow( deprecated) ]
262
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
263
+ since = "1.0.0" ) ]
257
264
#[ derive( Clone ) ]
258
265
#[ unstable( feature = "unicode" ,
259
266
reason = "this functionality may be replaced with a more generic \
@@ -266,6 +273,7 @@ pub struct Recompositions<'a> {
266
273
last_ccc : Option < u8 >
267
274
}
268
275
276
+ #[ allow( deprecated) ]
269
277
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
270
278
impl < ' a > Iterator for Recompositions < ' a > {
271
279
type Item = char ;
@@ -465,6 +473,9 @@ impl str {
465
473
466
474
/// Returns an iterator over the string in Unicode Normalization Form D
467
475
/// (canonical decomposition).
476
+ #[ allow( deprecated) ]
477
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
478
+ since = "1.0.0" ) ]
468
479
#[ inline]
469
480
#[ unstable( feature = "unicode" ,
470
481
reason = "this functionality may be replaced with a more generic \
@@ -480,6 +491,9 @@ impl str {
480
491
481
492
/// Returns an iterator over the string in Unicode Normalization Form KD
482
493
/// (compatibility decomposition).
494
+ #[ allow( deprecated) ]
495
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
496
+ since = "1.0.0" ) ]
483
497
#[ inline]
484
498
#[ unstable( feature = "unicode" ,
485
499
reason = "this functionality may be replaced with a more generic \
@@ -495,6 +509,9 @@ impl str {
495
509
496
510
/// An Iterator over the string in Unicode Normalization Form C
497
511
/// (canonical decomposition followed by canonical composition).
512
+ #[ allow( deprecated) ]
513
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
514
+ since = "1.0.0" ) ]
498
515
#[ inline]
499
516
#[ unstable( feature = "unicode" ,
500
517
reason = "this functionality may be replaced with a more generic \
@@ -511,6 +528,9 @@ impl str {
511
528
512
529
/// An Iterator over the string in Unicode Normalization Form KC
513
530
/// (compatibility decomposition followed by canonical composition).
531
+ #[ allow( deprecated) ]
532
+ #[ deprecated( reason = "use the crates.io `unicode-normalization` library instead" ,
533
+ since = "1.0.0" ) ]
514
534
#[ inline]
515
535
#[ unstable( feature = "unicode" ,
516
536
reason = "this functionality may be replaced with a more generic \
@@ -1690,6 +1710,8 @@ impl str {
1690
1710
///
1691
1711
/// assert_eq!(&gr2[..], b);
1692
1712
/// ```
1713
+ #[ deprecated( reason = "use the crates.io `unicode-segmentation` library instead" ,
1714
+ since = "1.0.0" ) ]
1693
1715
#[ unstable( feature = "unicode" ,
1694
1716
reason = "this functionality may only be provided by libunicode" ) ]
1695
1717
pub fn graphemes ( & self , is_extended : bool ) -> Graphemes {
@@ -1709,6 +1731,8 @@ impl str {
1709
1731
///
1710
1732
/// assert_eq!(&gr_inds[..], b);
1711
1733
/// ```
1734
+ #[ deprecated( reason = "use the crates.io `unicode-segmentation` library instead" ,
1735
+ since = "1.0.0" ) ]
1712
1736
#[ unstable( feature = "unicode" ,
1713
1737
reason = "this functionality may only be provided by libunicode" ) ]
1714
1738
pub fn grapheme_indices ( & self , is_extended : bool ) -> GraphemeIndices {
@@ -1749,6 +1773,8 @@ impl str {
1749
1773
/// recommends that these
1750
1774
/// characters be treated as 1 column (i.e., `is_cjk = false`) if the
1751
1775
/// locale is unknown.
1776
+ #[ deprecated( reason = "use the crates.io `unicode-width` library instead" ,
1777
+ since = "1.0.0" ) ]
1752
1778
#[ unstable( feature = "unicode" ,
1753
1779
reason = "this functionality may only be provided by libunicode" ) ]
1754
1780
pub fn width ( & self , is_cjk : bool ) -> usize {
0 commit comments