original_string: public function supplant(array $map) {
  		return new Text(str_replace(array_keys($map), array_values($map), $this->string), $this->encoding);
  	}
code: public function supplant(array $map) {
  		return new Text(str_replace(array_keys($map), array_values($map), $this->string), $this->encoding);
  	}
code_tokens: public function supplant ( array $ map ) { return new Text ( str_replace ( array_keys ( $ map ) , array_values ( $ map ) , $ this -> string ) , $ this -> encoding ) ; }
docstring: Replaces all occurences of given replacement map. Keys will be replaced with its values.
  
  @param array $map the replacements. Keys will be replaced with its value.
  @return Text
docstring_tokens: Replaces all occurences of given replacement map . Keys will be replaced with its values .