rust/src/libstd
bors 1f9bd62fd6 auto merge of #8857 : blake2-ppc/rust/std-str-remove, r=thestinger
These are very easy to replace with methods on string slices, basically
`.char_len()` and `.len()`.

These are the replacement implementations I did to clean these
functions up, but seeing this I propose removal:

/// ...
pub fn count_chars(s: &str, begin: uint, end: uint) -> uint {
    // .slice() checks the char boundaries
    s.slice(begin, end).char_len()
}

/// Counts the number of bytes taken by the first `n` chars in `s`
/// starting from byte index `begin`.
///
/// Fails if there are less than `n` chars past `begin`
pub fn count_bytes<'b>(s: &'b str, begin: uint, n: uint) -> uint {
    s.slice_from(begin).slice_chars(0, n).len()
}
2013-08-30 04:40:47 -07:00
..
fmt librustc: Fix merge fallout. 2013-08-27 18:47:57 -07:00
num auto merge of #8819 : vadimcn/rust/unit-tests, r=brson 2013-08-29 20:40:47 -07:00
rand
rt auto merge of #8854 : huonw/rust/rt-papercuts, r=brson 2013-08-30 03:30:43 -07:00
str
task Consolidate local_data implementations, and cleanup 2013-08-27 21:29:11 -07:00
unstable auto merge of #8820 : alexcrichton/rust/no-io-writer, r=brson 2013-08-30 01:20:44 -07:00
at_vec.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
bool.rs
borrow.rs
c_str.rs Remove offset_inbounds for an unsafe offset function 2013-08-27 23:22:52 -07:00
cast.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
cell.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
char.rs
cleanup.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
clone.rs
cmp.rs
comm.rs
condition.rs
container.rs
default.rs Add a Default trait. 2013-08-26 19:25:53 -04:00
either.rs
from_str.rs
hash.rs Replace HashUtil w/ default method on Hash 2013-08-27 21:41:10 -04:00
hashmap.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
io.rs
iterator.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
kinds.rs
libc.rs
local_data.rs Consolidate local_data implementations, and cleanup 2013-08-27 21:29:11 -07:00
logging.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
macros.rs
managed.rs
ops.rs
option.rs option: rm implementation of Add 2013-08-27 13:18:57 -04:00
os.rs Fixed MemoryMap on Windows. 2013-08-28 01:44:12 -07:00
owned.rs
path.rs
prelude.rs Remove the iter module. 2013-08-29 01:27:24 -04:00
ptr.rs Remove offset_inbounds for an unsafe offset function 2013-08-27 23:22:52 -07:00
rand.rs
reflect_stage0.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
reflect.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
repr_stage0.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
repr.rs auto merge of #8820 : alexcrichton/rust/no-io-writer, r=brson 2013-08-30 01:20:44 -07:00
result.rs
run.rs Revert "auto merge of #8645 : alexcrichton/rust/issue-6436-run-non-blocking, r=brson" 2013-08-29 14:23:44 -07:00
select.rs Remove the iter module. 2013-08-29 01:27:24 -04:00
std.rs auto merge of #8820 : alexcrichton/rust/no-io-writer, r=brson 2013-08-30 01:20:44 -07:00
str.rs auto merge of #8857 : blake2-ppc/rust/std-str-remove, r=thestinger 2013-08-30 04:40:47 -07:00
sys.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
to_bytes.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
to_str.rs
trie.rs
tuple.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
unicode.rs
unit.rs Add a Default trait. 2013-08-26 19:25:53 -04:00
util.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
vec.rs Remove offset_inbounds for an unsafe offset function 2013-08-27 23:22:52 -07:00