renamed str::view -> slice_DBG_BRWD

renamed str::slice -> slice_DBG_UNIQ
changed vec slice method -> to_owned()
renamed vec view method  -> slice_V_DBG_BRWD
This commit is contained in:
Marvin Löbel 2013-03-20 19:13:13 +01:00
parent b12714eff5
commit a7d296f24c
32 changed files with 162 additions and 148 deletions

View file

@ -266,7 +266,7 @@ pub impl FileMap {
Some(e) => e,
None => str::len(*self.src)
};
str::slice(*self.src, begin, end)
str::slice_DBG_BRWD(*self.src, begin, end).to_owned()
}
}
@ -395,8 +395,8 @@ pub impl CodeMap {
let begin = self.lookup_byte_offset(sp.lo);
let end = self.lookup_byte_offset(sp.hi);
fail_unless!(begin.fm.start_pos == end.fm.start_pos);
return str::slice(*begin.fm.src,
begin.pos.to_uint(), end.pos.to_uint());
return str::slice_DBG_BRWD(*begin.fm.src,
begin.pos.to_uint(), end.pos.to_uint()).to_owned();
}
pub fn get_filemap(&self, filename: ~str) -> @FileMap {