File tree Expand file tree Collapse file tree 3 files changed +3
-30
lines changed Expand file tree Collapse file tree 3 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: f55c366a8ac33307859ae6190d2788270a885f90
32
+ refs/heads/stable: a05ed9936d97414efdfd460f1e25505c366689d3
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
Original file line number Diff line number Diff line change @@ -227,9 +227,8 @@ pub fn next_code_point(bytes: &mut slice::Iter<u8>) -> Option<u32> {
227
227
228
228
/// Reads the last code point out of a byte iterator (assuming a
229
229
/// UTF-8-like encoding).
230
- #[ unstable( feature = "str_internals" ) ]
231
230
#[ inline]
232
- pub fn next_code_point_reverse ( bytes : & mut slice:: Iter < u8 > ) -> Option < u32 > {
231
+ fn next_code_point_reverse ( bytes : & mut slice:: Iter < u8 > ) -> Option < u32 > {
233
232
// Decode UTF-8
234
233
let w = match bytes. next_back ( ) {
235
234
None => return None ,
@@ -1873,8 +1872,7 @@ impl AsRef<[u8]> for str {
1873
1872
/// Pluck a code point out of a UTF-8-like byte slice and return the
1874
1873
/// index of the next code point.
1875
1874
#[ inline]
1876
- #[ unstable( feature = "str_internals" ) ]
1877
- pub fn char_range_at_raw ( bytes : & [ u8 ] , i : usize ) -> ( u32 , usize ) {
1875
+ fn char_range_at_raw ( bytes : & [ u8 ] , i : usize ) -> ( u32 , usize ) {
1878
1876
if bytes[ i] < 128 {
1879
1877
return ( bytes[ i] as u32 , i + 1 ) ;
1880
1878
}
Original file line number Diff line number Diff line change @@ -480,31 +480,6 @@ impl Wtf8 {
480
480
}
481
481
}
482
482
483
- /// Returns the code point at `position`.
484
- ///
485
- /// # Panics
486
- ///
487
- /// Panics if `position` is not at a code point boundary,
488
- /// or is beyond the end of the string.
489
- #[ inline]
490
- pub fn code_point_at ( & self , position : usize ) -> CodePoint {
491
- let ( code_point, _) = self . code_point_range_at ( position) ;
492
- code_point
493
- }
494
-
495
- /// Returns the code point at `position`
496
- /// and the position of the next code point.
497
- ///
498
- /// # Panics
499
- ///
500
- /// Panics if `position` is not at a code point boundary,
501
- /// or is beyond the end of the string.
502
- #[ inline]
503
- pub fn code_point_range_at ( & self , position : usize ) -> ( CodePoint , usize ) {
504
- let ( c, n) = char_range_at_raw ( & self . bytes , position) ;
505
- ( CodePoint { value : c } , n)
506
- }
507
-
508
483
/// Returns an iterator for the string’s code points.
509
484
#[ inline]
510
485
pub fn code_points ( & self ) -> Wtf8CodePoints {
You can’t perform that action at this time.
0 commit comments