auto merge of #8857 : blake2-ppc/rust/std-str-remove, r=thestinger
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()
}

zaeleus/rust,servo/rust,omasanori/rust,kimroen/rust,ktossell/rust,dwillmer/rust,ebfull/rust,aneeshusa/rust,zaeleus/rust,pythonesque/rust,gifnksm/rust,pczarn/rust,ktossell/rust,mitsuhiko/rust,quornian/rust,rohitjoshi/rust,jroesch/rust,kimroen/rust,ruud-v-a/rust,AerialX/rust-rt-minimal,pshc/rust,mahkoh/rust,ebfull/rust,fabricedesre/rust,rprichard/rust,stepancheg/rust-ide-rust,kimroen/rust,miniupnp/rust,aidancully/rust,nwin/rust,avdi/rust,bombless/rust,kwantam/rust,jbclements/rust,miniupnp/rust,pelmers/rust,aneeshusa/rust,GBGamer/rust,LeoTestard/rust,miniupnp/rust,jroesch/rust,l0kod/rust,dinfuehr/rust,mihneadb/rust,omasanori/rust,mdinger/rust,huonw/rand,philyoon/rust,l0kod/rust,aidancully/rust,hauleth/rust,TheNeikos/rust,ejjeong/rust,vhbit/rust,retep998/rand,ebfull/rust,stepancheg/rust-ide-rust,ruud-v-a/rust,krzysz00/rust,zaeleus/rust,GrahamDennis/rand,carols10cents/rust,seanrivera/rust,KokaKiwi/rust,andars/rust,emk/rust,dwillmer/rust,victorvde/rust,ktossell/rust,LeoTestard/rust,quornian/rust,ejjeong/rust,AerialX/rust,l0kod/rust,fabricedesre/rust,avdi/rust,jroesch/rust,erickt/rust,jashank/rust,servo/rust,cllns/rust,victorvde/rust,Ryman/rust,emk/rust,AerialX/rust,mihneadb/rust,zachwick/rust,philyoon/rust,0x73/rust,dinfuehr/rust,aidancully/rust,kwantam/rust,pelmers/rust,emk/rust,vhbit/rust,cllns/rust,zachwick/rust,dwillmer/rust,GBGamer/rust,kwantam/rust,gifnksm/rust,aidancully/rust,rprichard/rust,omasanori/rust,mahkoh/rust,robertg/rust,ebfull/rand,Ryman/rust,mitsuhiko/rust,Ryman/rust,aepsil0n/rust,avdi/rust,mdinger/rust,untitaker/rust,TheNeikos/rust,jbclements/rust,ejjeong/rust,quornian/rust,ejjeong/rust,vhbit/rust,aidancully/rust,SiegeLord/rust,l0kod/rust,seanrivera/rust,mihneadb/rust,SiegeLord/rust,omasanori/rust,barosl/rust,pelmers/rust,reem/rust,defuz/rust,GBGamer/rust,dwillmer/rust,TheNeikos/rust,erickt/rust,dwillmer/rust,miniupnp/rust,pelmers/rust,defuz/rust,zachwick/rust,dwillmer/rust,barosl/rust,sae-bom/rust,dwillmer/rust,erickt/rust,SiegeLord/rust,SiegeLord/rust,andars/rust,reem/rust,graydon/rust,pczarn/rust,jashank/rust,XMPPwocky/rust,hauleth/rust,defuz/rust,robertg/rust,fabricedesre/rust,rprichard/rust,seanrivera/rust,avdi/rust,aepsil0n/rust,mitsuhiko/rust,untitaker/rust,fabricedesre/rust,LeoTestard/rust,hauleth/rust,AerialX/rust-rt-minimal,kwantam/rust,ebfull/rust,servo/rust,stepancheg/rust-ide-rust,stepancheg/rust-ide-rust,ebfull/rust,reem/rust,P1start/rust,GBGamer/rust,nwin/rust,pythonesque/rust,sae-bom/rust,aneeshusa/rust,nham/rust,0x73/rust,zubron/rust,graydon/rust,rprichard/rust,reem/rust,jbclements/rust,avdi/rust,defuz/rust,dinfuehr/rust,zubron/rust,gifnksm/rust,zubron/rust,aneeshusa/rust,aepsil0n/rust,ejjeong/rust,barosl/rust,philyoon/rust,aturon/rust,l0kod/rust,carols10cents/rust,robertg/rust,kimroen/rust,michaelballantyne/rust-gpu,jbclements/rust,michaelballantyne/rust-gpu,rprichard/rust,AerialX/rust,AerialX/rust,XMPPwocky/rust,emk/rust,vhbit/rust,robertg/rust,omasanori/rust,P1start/rust,andars/rust,philyoon/rust,victorvde/rust,kwantam/rust,P1start/rust,barosl/rust,sae-bom/rust,mvdnes/rust,krzysz00/rust,bombless/rust,erickt/rust,bombless/rust,emk/rust,andars/rust,sae-bom/rust,carols10cents/rust,aepsil0n/rust,miniupnp/rust,KokaKiwi/rust,reem/rust,l0kod/rust,AerialX/rust-rt-minimal,pythonesque/rust,mahkoh/rust,untitaker/rust,mitsuhiko/rust,hauleth/rust,avdi/rust,richo/rust,zubron/rust,mvdnes/rust,graydon/rust,defuz/rust,ruud-v-a/rust,servo/rust,michaelballantyne/rust-gpu,hauleth/rust,michaelballantyne/rust-gpu,nwin/rust,Ryman/rust,aturon/rust,sae-bom/rust,jbclements/rust,rohitjoshi/rust,barosl/rust,mitsuhiko/rust,pshc/rust,LeoTestard/rust,zubron/rust,quornian/rust,barosl/rust,nwin/rust,0x73/rust,mvdnes/rust,dwillmer/rust,mahkoh/rust,pshc/rust,TheNeikos/rust,GBGamer/rust,ruud-v-a/rust,ebfull/rust,aturon/rust,0x73/rust,zaeleus/rust,ejjeong/rust,dinfuehr/rust,l0kod/rust,victorvde/rust,graydon/rust,GBGamer/rust,stepancheg/rust-ide-rust,jroesch/rust,erickt/rust,pshc/rust,nham/rust,jbclements/rust,vhbit/rust,TheNeikos/rust,vhbit/rust,nwin/rust,bluss/rand,bombless/rust,zubron/rust,nham/rust,pczarn/rust,jashank/rust,hauleth/rust,jbclements/rust,ktossell/rust,fabricedesre/rust,rprichard/rust,pshc/rust,aturon/rust,richo/rust,P1start/rust,ruud-v-a/rust,robertg/rust,shepmaster/rand,zachwick/rust,servo/rust,omasanori/rust,gifnksm/rust,aidancully/rust,richo/rust,vhbit/rust,krzysz00/rust,bhickey/rand,mvdnes/rust,untitaker/rust,jroesch/rust,quornian/rust,pshc/rust,miniupnp/rust,P1start/rust,SiegeLord/rust,bombless/rust,carols10cents/rust,philyoon/rust,kimroen/rust,XMPPwocky/rust,gifnksm/rust,mdinger/rust,victorvde/rust,ktossell/rust,mahkoh/rust,pelmers/rust,TheNeikos/rust,jashank/rust,carols10cents/rust,pelmers/rust,nwin/rust,sae-bom/rust,XMPPwocky/rust,SiegeLord/rust,pczarn/rust,fabricedesre/rust,waynenilsen/rand,ktossell/rust,zachwick/rust,LeoTestard/rust,aturon/rust,SiegeLord/rust,jroesch/rust,zubron/rust,GBGamer/rust,miniupnp/rust,mvdnes/rust,Ryman/rust,erickt/rust,fabricedesre/rust,pythonesque/rust,achanda/rand,pczarn/rust,nham/rust,aneeshusa/rust,nwin/rust,philyoon/rust,rohitjoshi/rust,aepsil0n/rust,andars/rust,LeoTestard/rust,zaeleus/rust,nham/rust,aneeshusa/rust,richo/rust,AerialX/rust-rt-minimal,jashank/rust,ruud-v-a/rust,AerialX/rust-rt-minimal,pythonesque/rust,cllns/rust,seanrivera/rust,pythonesque/rust,jroesch/rust,GBGamer/rust,P1start/rust,bombless/rust,servo/rust,pczarn/rust,stepancheg/rust-ide-rust,untitaker/rust,mahkoh/rust,graydon/rust,gifnksm/rust,KokaKiwi/rust,XMPPwocky/rust,victorvde/rust,zaeleus/rust,richo/rust,0x73/rust,michaelballantyne/rust-gpu,KokaKiwi/rust,erickt/rust,aepsil0n/rust,kwantam/rust,pczarn/rust,rohitjoshi/rust,KokaKiwi/rust,miniupnp/rust,defuz/rust,mihneadb/rust,AerialX/rust,arthurprs/rand,andars/rust,richo/rust,krzysz00/rust,jashank/rust,mihneadb/rust,mvdnes/rust,Ryman/rust,jroesch/rust,quornian/rust,cllns/rust,KokaKiwi/rust,dinfuehr/rust,barosl/rust,stepancheg/rust-ide-rust,0x73/rust,0x73/rust,quornian/rust,kimroen/rust,emk/rust,zachwick/rust,michaelballantyne/rust-gpu,nham/rust,jbclements/rust,aturon/rust,mitsuhiko/rust,nwin/rust,kimroen/rust,seanrivera/rust,vhbit/rust,seanrivera/rust,aturon/rust,mihneadb/rust,pythonesque/rust,mdinger/rust,robertg/rust,krzysz00/rust,bombless/rust-docs-chinese,mdinger/rust,emk/rust,michaelballantyne/rust-gpu,untitaker/rust,l0kod/rust,AerialX/rust,Ryman/rust,mitsuhiko/rust,pshc/rust,nham/rust,jashank/rust,ktossell/rust,jbclements/rust,servo/rust,carols10cents/rust,graydon/rust,cllns/rust,zubron/rust,XMPPwocky/rust,reem/rust,AerialX/rust-rt-minimal,rohitjoshi/rust,mdinger/rust,pshc/rust,dinfuehr/rust,rohitjoshi/rust,jashank/rust,cllns/rust,LeoTestard/rust,krzysz00/rust,P1start/rust