symbolizer *find_symbolizer() { for(mapnik::rule::symbolizers::iterator it = rule_->begin(); it != rule_->end(); ++it) { if (symbolizer *sym = boost::get<symbolizer>(&(*it))) return(sym); } BOOST_ASSERT(it==end); rule_->append(init_symbolizer<symbolizer>()); symbolizer *sym = boost::get<symbolizer>(& (*(--rule_->end())) ); return sym; }
static bool my_cypher(std::string const& value_in, boost::optional<std::string>& value_out) { size_t const cypher = 'A' - '1'; value_out = value_in; for (std::string::iterator it = value_out->begin(); it != value_out->end(); ++it) (*it < 'A') ? (*it += cypher) : (*it -= cypher); return true; }