Rename std::istr::from_str/to_str to from_estr/to_estr. Issue #855

This will make it a bit clearer what's going on
This commit is contained in:
Brian Anderson 2011-08-23 20:15:18 -07:00
parent 2c8a93aa3b
commit 69e6abf9ce

View File

@ -4,9 +4,9 @@ concat, connect, to_upper, replace, char_slice, trim_left, trim_right, trim,
unshift_char, shift_char, pop_char, push_char, is_utf8, from_chars, to_chars,
char_len, char_at, bytes, is_ascii, shift_byte, pop_byte, unsafe_from_bytes;
export from_str, to_str;
export from_estr, to_estr;
fn from_str(s: &str) -> istr {
fn from_estr(s: &str) -> istr {
let s2 = ~"";
for u in s {
push_byte(s2, u);
@ -14,7 +14,7 @@ fn from_str(s: &str) -> istr {
ret s2;
}
fn to_str(s: &istr) -> str {
fn to_estr(s: &istr) -> str {
let s2 = "";
for u in s {
str::push_byte(s2, u);