1
Fork 0

Address FIXMEs in extfmt / add issue numbers

This commit is contained in:
Tim Chevalier 2012-03-15 17:45:38 -07:00
parent ce3f369047
commit 20ec72830a
2 changed files with 35 additions and 29 deletions

View file

@ -20,6 +20,7 @@ export
push_char,
concat,
connect,
init_elt,
// Reinterpretation
as_bytes,
@ -240,6 +241,16 @@ fn connect(v: [str], sep: str) -> str {
ret s;
}
#[doc = "Returns a string of <n_elts> repetitions of <c>, which must be \
UTF-8"]
fn init_elt(n_elts: uint, c: char) -> str {
let mut rslt = "";
uint::range(0u, n_elts) {|_i|
push_char(rslt, c);
}
rslt
}
/*
Section: Adding to and removing from a string
*/