@@ -161,6 +161,8 @@ enum DecompositionType {
161
161
/// External iterator for a string decomposition's characters.
162
162
///
163
163
/// For use with the `std::iter` module.
164
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
165
+ since = "1.0.0-nightly-20150415" ) ]
164
166
#[ derive( Clone ) ]
165
167
#[ unstable( feature = "unicode" ,
166
168
reason = "this functionality may be replaced with a more generic \
@@ -254,6 +256,8 @@ enum RecompositionState {
254
256
/// External iterator for a string recomposition's characters.
255
257
///
256
258
/// For use with the `std::iter` module.
259
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
260
+ since = "1.0.0-nightly-20150415" ) ]
257
261
#[ derive( Clone ) ]
258
262
#[ unstable( feature = "unicode" ,
259
263
reason = "this functionality may be replaced with a more generic \
@@ -465,6 +469,8 @@ impl str {
465
469
466
470
/// Returns an iterator over the string in Unicode Normalization Form D
467
471
/// (canonical decomposition).
472
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
473
+ since = "1.0.0-nightly-20150415" ) ]
468
474
#[ inline]
469
475
#[ unstable( feature = "unicode" ,
470
476
reason = "this functionality may be replaced with a more generic \
@@ -480,6 +486,8 @@ impl str {
480
486
481
487
/// Returns an iterator over the string in Unicode Normalization Form KD
482
488
/// (compatibility decomposition).
489
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
490
+ since = "1.0.0-nightly-20150415" ) ]
483
491
#[ inline]
484
492
#[ unstable( feature = "unicode" ,
485
493
reason = "this functionality may be replaced with a more generic \
@@ -495,6 +503,8 @@ impl str {
495
503
496
504
/// An Iterator over the string in Unicode Normalization Form C
497
505
/// (canonical decomposition followed by canonical composition).
506
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
507
+ since = "1.0.0-nightly-20150415" ) ]
498
508
#[ inline]
499
509
#[ unstable( feature = "unicode" ,
500
510
reason = "this functionality may be replaced with a more generic \
@@ -511,6 +521,8 @@ impl str {
511
521
512
522
/// An Iterator over the string in Unicode Normalization Form KC
513
523
/// (compatibility decomposition followed by canonical composition).
524
+ #[ deprecated( reason = "use the crates.io `unicode-decomp` library instead" ,
525
+ since = "1.0.0-nightly-20150415" ) ]
514
526
#[ inline]
515
527
#[ unstable( feature = "unicode" ,
516
528
reason = "this functionality may be replaced with a more generic \
@@ -1690,6 +1702,8 @@ impl str {
1690
1702
///
1691
1703
/// assert_eq!(&gr2[..], b);
1692
1704
/// ```
1705
+ #[ deprecated( reason = "use the crates.io `unicode-uax29` library instead" ,
1706
+ since = "1.0.0-nightly-20150415" ) ]
1693
1707
#[ unstable( feature = "unicode" ,
1694
1708
reason = "this functionality may only be provided by libunicode" ) ]
1695
1709
pub fn graphemes ( & self , is_extended : bool ) -> Graphemes {
@@ -1709,6 +1723,8 @@ impl str {
1709
1723
///
1710
1724
/// assert_eq!(&gr_inds[..], b);
1711
1725
/// ```
1726
+ #[ deprecated( reason = "use the crates.io `unicode-uax29` library instead" ,
1727
+ since = "1.0.0-nightly-20150415" ) ]
1712
1728
#[ unstable( feature = "unicode" ,
1713
1729
reason = "this functionality may only be provided by libunicode" ) ]
1714
1730
pub fn grapheme_indices ( & self , is_extended : bool ) -> GraphemeIndices {
@@ -1749,6 +1765,8 @@ impl str {
1749
1765
/// recommends that these
1750
1766
/// characters be treated as 1 column (i.e., `is_cjk = false`) if the
1751
1767
/// locale is unknown.
1768
+ #[ deprecated( reason = "use the crates.io `unicode-width` library instead" ,
1769
+ since = "1.0.0-nightly-20150415" ) ]
1752
1770
#[ unstable( feature = "unicode" ,
1753
1771
reason = "this functionality may only be provided by libunicode" ) ]
1754
1772
pub fn width ( & self , is_cjk : bool ) -> usize {
0 commit comments