about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-10 18:10:12 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-17 09:07:16 -0700
commita05ed9936d97414efdfd460f1e25505c366689d3 (patch)
tree6c2278bb6ef3bd2416c715a331fb4f1808544bbb /src/libcore/str
parentf55c366a8ac33307859ae6190d2788270a885f90 (diff)
std: Remove two internal `str_internals` functions
These were just exposed to be used elsewhere at some point, but neither is
currently being used so just make them private again.
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 13c6ad36725..7092df7b4c2 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -227,9 +227,8 @@ pub fn next_code_point(bytes: &mut slice::Iter<u8>) -> Option<u32> {
 
 /// Reads the last code point out of a byte iterator (assuming a
 /// UTF-8-like encoding).
-#[unstable(feature = "str_internals")]
 #[inline]
-pub fn next_code_point_reverse(bytes: &mut slice::Iter<u8>) -> Option<u32> {
+fn next_code_point_reverse(bytes: &mut slice::Iter<u8>) -> Option<u32> {
     // Decode UTF-8
     let w = match bytes.next_back() {
         None => return None,
@@ -1873,8 +1872,7 @@ impl AsRef<[u8]> for str {
 /// Pluck a code point out of a UTF-8-like byte slice and return the
 /// index of the next code point.
 #[inline]
-#[unstable(feature = "str_internals")]
-pub fn char_range_at_raw(bytes: &[u8], i: usize) -> (u32, usize) {
+fn char_range_at_raw(bytes: &[u8], i: usize) -> (u32, usize) {
     if bytes[i] < 128 {
         return (bytes[i] as u32, i + 1);
     }