src/Generic/tokens/SymbolSubstitutionMap.cpp
/**
 * @param out the output stream to write to.
 * @param indent the number of characters to indent.
 */
@param out the output stream to write to.
@param indent the number of characters to indent.
@param out the output stream to write to . @param indent the number of characters to indent .
void SymbolSubstitutionMap::dump(std::ostream &out, int indent) const {
	for (int i = 0; i < indent; i++) {
		out << ' ';
	}
	bool first_item = true;
	typedef Symbol::HashMap<Symbol>::const_iterator MapIter;
	for (MapIter it = _map.begin(); it != _map.end(); ++it) {
		if (!first_item) out << ',';
		out << "\""
			<< (*it).first.to_debug_string()
			<< "\" => \""
			<< (*it).second.to_debug_string()
			<< "\"";
		first_item = false;
	}
	out << '}';
}
void SymbolSubstitutionMap :: dump ( std :: ostream & out , int indent ) const { for ( int i = 0 ; i < indent ; i ++ ) { out << ' ' ; } bool first_item = true ; typedef Symbol :: HashMap < Symbol > :: const_iterator MapIter ; for ( MapIter it = _map . begin ( ) ; it != _map . end ( ) ; ++ it ) { if ( ! first_item ) out << ' ' ; out << " \" " << ( * it ) . first . to_debug_string ( ) << " \" \" " << ( * it ) . second . to_debug_string ( ) << " \" " ; first_item = false ; } out << ' ' ; }
@param out the output stream to write to.
@param out the output stream to write to .
// Indent.
