rename send_map to hashmap

This makes the module much more discoverable, and is in line with the
'treemap' naming.
This commit is contained in:
Daniel Micay
2013-01-23 10:25:27 -05:00
parent 54344c2468
commit b7ef28c33a
13 changed files with 20 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ use core::float;
use core::io::{WriterUtil, ReaderUtil};
use core::io;
use core::prelude::*;
use core::send_map::linear;
use core::hashmap::linear;
use core::str;
use core::to_str;
use core::vec;
@@ -1223,7 +1223,7 @@ mod tests {
use json::*;
use core::result;
use core::send_map::linear;
use core::hashmap::linear;
fn mk_object(items: &[(~str, Json)]) -> Json {
let mut d = ~linear::LinearMap();

View File

@@ -19,7 +19,7 @@ use core::ops;
use core::to_str::ToStr;
use core::mutable::Mut;
use core::prelude::*;
use core::send_map::linear::LinearMap;
use core::hashmap::linear::LinearMap;
use core::to_bytes::IterBytes;
use core::uint;
use core::vec;

View File

@@ -20,8 +20,8 @@ use core::from_str::FromStr;
use core::io::{Reader, ReaderUtil};
use core::io;
use core::prelude::*;
use core::send_map::linear::LinearMap;
use core::send_map;
use core::hashmap::linear::LinearMap;
use core::hashmap;
use core::str;
use core::to_bytes::IterBytes;
use core::to_bytes;
@@ -246,7 +246,7 @@ pub fn encode_form_urlencoded(m: &LinearMap<~str, ~[~str]>) -> ~str {
*/
pub fn decode_form_urlencoded(
s: &[u8]
) -> send_map::linear::LinearMap<~str, ~[~str]> {
) -> hashmap::linear::LinearMap<~str, ~[~str]> {
do io::with_bytes_reader(s) |rdr| {
let mut m = LinearMap();
let mut key = ~"";

View File

@@ -22,7 +22,7 @@ use core::pipes::{recv, oneshot, PortOne, send_one};
use core::prelude::*;
use core::result;
use core::run;
use core::send_map::linear::LinearMap;
use core::hashmap::linear::LinearMap;
use core::task;
use core::to_bytes;
use core::mutable::Mut;