[src]

Function std::str::with_capacity

pub fn with_capacity(capacity: uint) -> ~str

Allocates a new string with the specified capacity. The string returned is the empty string, but has capacity for much more.